Run statement under profiler, supplying your own globals and locals, optionally saving results in filename. statement and filename have the same semantics as profile.run
(statement, globals, locals, filename=None, sort=-1)
| 29 | return _Utils(Profile).run(statement, filename, sort) |
| 30 | |
| 31 | def runctx(statement, globals, locals, filename=None, sort=-1): |
| 32 | """Run statement under profiler, supplying your own globals and locals, |
| 33 | optionally saving results in filename. |
| 34 | |
| 35 | statement and filename have the same semantics as profile.run |
| 36 | """ |
| 37 | return _Utils(Profile).runctx(statement, globals, locals, |
| 38 | filename, sort) |
| 39 | |
| 40 | # ____________________________________________________________ |
| 41 |