Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Added an interactive web interface (#154)
* Added an interactive web interface triggered by passing -http=port on the command line. The interface is available by visiting localhost:port in a browser. Requirements: * Graphviz must be installed. * Browser must support Javascript. * Tested in recent stable versions of chrome and firefox. Features: * The entry point is a dot graph display (equivalent to "web" output). * Nodes in the graph can be selected by clicking. * A regular expression can also be typed in for selection. * The current selection (either list of nodes or a regexp) can be focused, ignored, or hidden. * Source code or disassembly of the current selection can be displayed. * Remove unused function. * Skip graph generation test if graphviz is not installed. * Added -http port and the various modes of using pprof to the usage message. * Web interface now supports "show" option. * Web interface automatically opens the browser pointed at the page corresponding to command line arguments. * Some tweaks for firefox. * Handle review comments (better usage message, more testing). * Handled review comments: 1. Capture and display errors like "Focus expression matched no samples". 2. Re-ordered buttons to match other interfaces. 3. Use UI.PrintErr to print error messages. * Handle javascript code review comments (a bunch of cleanups). Also added pprof binary to .gitignore.
- Loading branch information
Showing
with
1,128 additions
and 20 deletions.
- +1 −0 .gitignore
- +13 −0 README.md
- +39 −8 doc/pprof.md
- +26 −1 internal/driver/cli.go
- +1 −1 internal/driver/commands.go
- +17 −5 internal/driver/driver.go
- +556 −0 internal/driver/webhtml.go
- +268 −0 internal/driver/webui.go
- +185 −0 internal/driver/webui_test.go
- +3 −3 internal/graph/dotgraph.go
- +10 −0 internal/plugin/plugin.go
- +9 −2 internal/report/report.go
Oops, something went wrong.