vmprof / vmprof-python

vmprof - a statistical program profiler
http://vmprof.com
Other
433 stars 54 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.