예제 #1
0
파일: debug.py 프로젝트: lrq3000/waCaptcha
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)
예제 #2
0
def runprofilerandshow(funcname, profilepath, argv='', *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+'(\''+argv+'\')', profilepath, *args, **kwargs)
    print 'Showing profile (windows should open in the background)'; sys.stdout.flush();
    functionprofiler.browseprofilegui(profilepath)
예제 #3
0
 def wrapper(*args, **kwargs):
     func(*args, **kwargs)
     functionprofiler.browseprofilegui(profilepath)
예제 #4
0
파일: debug.py 프로젝트: lrq3000/waCaptcha
 def wrapper(*args, **kwargs):
     func(*args, **kwargs)
     functionprofiler.browseprofilegui(profilepath)