Skip to content

profiler

Profiler

profiler = cProfile.Profile() instance-attribute

enabled property

Indicates whether the profiler is currently enabled.

__init__()

enable()

dump_stats(filename)

NullProfiler

A profiler class which does not actually profile anything.

Meant to be used in place of an optional profiler.

profiler = None instance-attribute

enabled property

Indicates whether the profiler is enabled.

__init__()

enable()

dump_stats(filename)