oops, missed som formatting and calibration issues
This commit is contained in:
parent
582acfb7b9
commit
b62e15207c
|
|
@ -2959,13 +2959,14 @@ bias=-1
|
|||
def quickProfile(name="unnamed"):
|
||||
global bias
|
||||
if(base.config.GetBool("use-profiler",0)):
|
||||
print "Calibrating profiler"
|
||||
if bias == -1:
|
||||
prof.Profile.bias = prof.Profile().calibrate(10000)
|
||||
import pstats
|
||||
print "Calibrating profiler"
|
||||
bias = prof.Profile().calibrate(100000)
|
||||
print "Bias is: ",bias
|
||||
prof.Profile.bias =bias
|
||||
|
||||
def f8(x):
|
||||
return ("%"+"8.%df"%base.config.GetBool("profile-decimals",3)) % x
|
||||
return ("%"+"8.%df"%base.config.GetInt("profile-decimals",3)) % x
|
||||
pstats.f8=f8
|
||||
def profileDecorator(f):
|
||||
if(not base.config.GetBool("use-profiler",0)):
|
||||
|
|
|
|||
Loading…
Reference in New Issue