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)
| 101 | return _Utils(Profile).run(statement, filename, sort) |
| 102 | |
| 103 | def runctx(statement, globals, locals, filename=None, sort=-1): |
| 104 | """Run statement under profiler, supplying your own globals and locals, |
| 105 | optionally saving results in filename. |
| 106 | |
| 107 | statement and filename have the same semantics as profile.run |
| 108 | """ |
| 109 | return _Utils(Profile).runctx(statement, globals, locals, filename, sort) |
| 110 | |
| 111 | |
| 112 | class Profile: |