Giuseppe Vallarelli has posted comments on this change.
Change subject: Add profiling decorator utility. ......................................................................
Patch Set 1: I would prefer that you didn't submit this
(1 inline comment)
Only a minor fix is needed.
.................................................... File lib/vdsm/utils.py Line 902: sys.exit(-3) Line 903: Line 904: Line 905: def profile(func): Line 906: func_name = func.__name__ You should use http://docs.python.org/2/library/functools.html#functools.wraps. Line 907: Line 908: def profiled_execution(*args, **kwargs): Line 909: logging.info('profiling method %s' % func_name) Line 910: profiler = cProfile.Profile()