chemicalchecker.util.decorator.profilehooks.TraceFuncCoverage
- class TraceFuncCoverage(fn)[source]
Bases:
object
Coverage analysis for a function (uses trace module).
HotShot coverage analysis is reportedly faster, but it appears to have problems with exceptions.
Creates a profiler for a function.
Every profiler has its own log file (the name of which is derived from the function name).
TraceFuncCoverage registers an atexit handler that prints profiling information to sys.stderr when the program terminates.
The log file is not removed and remains there to clutter the current working directory.
Methods
Stop profiling and print profile information to sys.stderr.
Attributes
tracer
tracing