tokuhirom's Blog

Let's try "develnytprofhtml --minimal"!

develnytprofhtml is bit slow, you know.

why it's slow? so it generates very big 'dot' file for graphviz.
Normally, the people want to profiling doesn't need it.

 --minimal,     -m         Don't generate graphviz .dot files or block/sub-level reports

If you don't want to generate graphviz dot file, try to run

nytprofhtml --minimal

It's pretty faster.

Here is a benchmark. --minimal is very fast.

$ time nytprofhtml --minimal
Reading nytprof.out
Processing nytprof.out data
Writing line reports to nytprof directory
 100% ... 

real    0m22.697s
user    0m22.109s
sys     0m0.372s
$ time nytprofhtml
Reading nytprof.out
Processing nytprof.out data
Writing sub reports to nytprof directory
 100% ... 
Writing block reports to nytprof directory
 100% ... 
Writing line reports to nytprof directory
 100% ... 

real    1m38.036s
user    1m36.830s
sys     0m0.712s

Thanks,