MCPcopy Index your code
hub / github.com/python/cpython / calibrate

Method calibrate

Lib/profile.py:488–497  ·  view source on GitHub ↗
(self, m, verbose=0)

Source from the content-addressed store, hash-verified

486 #**************************************************************
487
488 def calibrate(self, m, verbose=0):
489 if self.__class__ is not Profile:
490 raise TypeError("Subclasses must override .calibrate().")
491
492 saved_bias = self.bias
493 self.bias = 0
494 try:
495 return self._calibrate_inner(m, verbose)
496 finally:
497 self.bias = saved_bias
498
499 def _calibrate_inner(self, m, verbose):
500 get_time = self.get_time

Callers

nothing calls this directly

Calls 1

_calibrate_innerMethod · 0.95

Tested by

no test coverage detected