def calibrateprofile():
    '''
    Calibrate the profiler (necessary to have non negative and more exact values)
    '''
    pr = profile.Profile()
    calib = []
    crepeat = 10
    for i in range(crepeat):
            calib.append(pr.calibrate(10000))
    final = sum(calib) / crepeat
    profile.Profile.bias = final # Apply computed bias to all Profile instances created hereafter
    return final
def calibrateprofile ( ) : pr = profile . Profile ( ) calib = [ ] crepeat = 10 for i in range ( crepeat ) : calib . append ( pr . calibrate ( 10000 ) ) final = sum ( calib ) / crepeat profile . Profile . bias = final return final
Calibrate the profiler (necessary to have non negative and more exact values)