code: 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 finaf 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
docs: Calibrate the profiler (necessary to have non negative and more exact values)