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)
| 92 | return _Utils(Profile).run(statement, filename, sort) |
| 93 | |
| 94 | def runctx(statement, globals, locals, filename=None, sort=-1): |
| 95 | """Run statement under profiler, supplying your own globals and locals, |
| 96 | optionally saving results in filename. |
| 97 | |
| 98 | statement and filename have the same semantics as profile.run |
| 99 | """ |
| 100 | return _Utils(Profile).runctx(statement, globals, locals, filename, sort) |
| 101 | |
| 102 | |
| 103 | class Profile: |