Exemple #1
0
def runprofilerandshow(funcname, profilepath, *args, **kwargs):
    '''
    Run a functions profiler and show it in a GUI visualisation using RunSnakeRun
    Note: can also use calibration for more exact results
    '''
    functionprofiler.runprofile(funcname+'()', profilepath, *args, **kwargs)
    functionprofiler.browseprofilegui(profilepath)
Exemple #2
0
 def wrapper(*args, **kwargs):
     func(*args, **kwargs)
     functionprofiler.browseprofilegui(profilepath)