cProfile

Python interface for the ‘lsprof’ profiler. Compatible with the ‘profile’ module.

Functions

help()
label(code)
main()
run(statement[, filename, sort]) Run statement under profiler optionally saving results in filename
runctx(statement, globals, locals[, ...]) Run statement under profiler, supplying your own globals and locals, optionally saving results in filename.

Classes

Profile Builds a profiler object using the specified timer function.