Package elisa :: Package core :: Package utils :: Module profiling

Module profiling

source code

Profiling helpers

Classes
  KCacheGrind
Convert a profile.Stats object into data suitable for visualisation in KCacheGrind.
Functions
 
label(code) source code
 
profileit(func)
Decorator profiling the decorated callable using cProfile.
source code

Imports: cProfile


Function Details

profileit(func)

source code 
Decorator profiling the decorated callable using cProfile. It outputs
the result both in the console and in a file suitable for visualisation
in KCacheGrind.

Usage example:

    @profileit
    def my_function(arg1, ...):
        ...