vmprof / vmprof-python

vmprof - a statistical program profiler
https://vmprof.readthedocs.io
Other
432 stars 55 forks source link

Add option to print tree as HTML with <details> #235

Closed inducer closed 3 years ago

inducer commented 3 years ago

This adds a very bare-bones HTML output mode to the tree subcommand:

grafik

Being able to expand and collapse the branches of the tree is quite handy, and it's not even a lot of extra code. The diff is big mainly because I promoted _print_node to its own method. Its content is essentially unchanged.