Message255301
I'm using the `cProfile` module to profile my code.
I tried to temporarily disable the profiler by using:
prof = sys.getprofile()
sys.setprofile(None)
...
sys.setprofile(prof)
resulting in an error.
The reason is that with `cProfile`, `sys.getprofile` returns the profile object itself, which isn't suitable as argument for `sys.setprofile` (which expects a callable).
Notice that if I use the `profile` module instead of `cProfile`, the above works fine. |
|
Date |
User |
Action |
Args |
2015-11-24 23:04:27 | stefan | set | recipients:
+ stefan |
2015-11-24 23:04:27 | stefan | set | messageid: <1448406267.14.0.484592445826.issue25726@psf.upfronthosting.co.za> |
2015-11-24 23:04:27 | stefan | link | issue25726 messages |
2015-11-24 23:04:27 | stefan | create | |
|