This plugin will run tests using the hotshot profiler, which is part of the standard library. To turn it on, use the --with-profile option or set the NOSE_WITH_PROFILE environment variable. Profiler output can be controlled with the --profile-sort and --profile-restrict options, and the profiler output file may be changed with --profile-stats-file.
See the hotshot documentation in the standard library documentation for more details on the various output options.
Enable plugin Profile: Use this plugin to run tests using the hotshot profiler. [NOSE_WITH_PROFILE]
Set sort order for profiler output
Profiler stats file; default is a new temp file on each run
Restrict profiler output. See help for pstats.Stats for details
Bases: nose.plugins.base.Plugin
Use this plugin to run tests using the hotshot profiler.
Create profile stats file and load profiler.
Configure plugin.
Clean up stats file, if configured to do so.
Register commandline options.
Wrap entire test run in prof.runcall().
Output profiler report.