Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
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
12 changed files
with
1,128 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
.*.swp | ||
core | ||
coverage.txt | ||
pprof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.