Nose2 profiler setup

Nose profiler is one of the plugins that come with nose2 but is turned off by default.

To enable profiling add the following configuration to unittest.cfg in the root of your project.

plugins =

always-on = False
filename =
restrict =
sort = cumulative

To enable profiler during nose2 run, use the following command parameters nose2 -P or more useful, redirect stdout and stderror into a file so profiler output can be analyzed nose2 -P &> perf_report.txt