sizeme_graph.pl - web server providing an interactive treemap of Devel::SizeMe data
sizeme_graph.pl --db sizeme.db daemon sizeme_graph.pl daemon # same as above
Then open a web browser on http://127.0.0.1:3000
Reads a database created by sizeme_store.pl and provides a web interface with an interactive treemap of the data.
Currently requires Mojolicious::Lite which isn't available for perl 5.8. If this affects you you can run Devel::SizeMe with your normal perl and run sizeme_graph.pl with a different perl, perhaps on a different machine.
Current implementation is all very alpha and rather hackish.
Split out the db and tree code into a separate module.
Use a history management library so the back button works and we can have links to specific nodes.
Better tool-tip and/or add a scrollable information area below the treemap that could contain details and links.
Make the treemap resize to fit the browser window (as NYTProf does).
Protect against nodes with thousands of children perhaps replace all with single merged child that has no children itself but just a warning as a title.
Implement other visualizations, such as a space-tree http://thejit.org/static/v20/Jit/Examples/Spacetree/example2.html
To install Devel::SizeMe, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::SizeMe
CPAN shell
perl -MCPAN -e shell install Devel::SizeMe
For more information on module installation, please visit the detailed CPAN module installation guide.