Skip to content
obriencj edited this page Jun 29, 2012 · 3 revisions

The utilities are easy enough to profile. For example to profile creating a distribution report via distdiff:

python -m cProfile -o profiler.dump $(which distdiff) [distdiff_opts...]

This example would work best on two large distributions, for example comparing JBossAS versions 7.0 and 7.1 would give a nice content set to work with.

Try enabling all of the reporting options disabling the CLI output, eg:

--report=html,json,txt --show-unchanged --show-ignored --report-dir="report" --html-copy-data="report/html" -q

Running the profiler with the -o profiler.dump option will cause the file profiler.dump to be created with a binary representation of the profiler results. I highly recommend the RunSnakeRun utility (available in modern Linux distributions) to view and work with these results.

Clone this wiki locally