Message74395
Have you verified the numbers? They don't look right to me.
The problem is the 2nd argument of cProfile's constructor has a
different semantic meaning than the one for profile.py. For profile.py,
it is used to set the "bias" (I presume it means the overhead) of the
profiler. But for cProfile, it's the unit (in seconds?) of timer used.
Personally, I have no idea which semantic should be preferred. So
perhaps, the best thing to do for now is remove the second argument from
the cls.profilerclass() call in test_profile.ProfileTest:
class ProfileTest:
...
def do_profiling(cls):
...
prof = cls.profilerclass(timer, 0.001)
... |
|
Date |
User |
Action |
Args |
2008-10-06 22:06:07 | alexandre.vassalotti | set | recipients:
+ alexandre.vassalotti, barry, brett.cannon, benjamin.peterson |
2008-10-06 22:06:07 | alexandre.vassalotti | set | messageid: <1223330767.54.0.0824763469201.issue2744@psf.upfronthosting.co.za> |
2008-10-06 22:06:07 | alexandre.vassalotti | link | issue2744 messages |
2008-10-06 22:06:06 | alexandre.vassalotti | create | |
|