Skip to content

Commit

Permalink
Merge pull request brendangregg#216 from knittl/feature/search-improv…
Browse files Browse the repository at this point in the history
…ements-docs

Interactive search documentation
  • Loading branch information
brendangregg authored Oct 24, 2019
2 parents 21eed7d + f8e7417 commit 56dff76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
Main Website: http://www.brendangregg.com/flamegraphs.html

Example (click to zoom):

[![Example](http://www.brendangregg.com/FlameGraphs/cpu-bash-flamegraph.svg)](http://www.brendangregg.com/FlameGraphs/cpu-bash-flamegraph.svg)

Click a box to zoom the Flame Graph to this stack frame only.
To search and highlight all stack frames matching a regular expression, click the _search_ button in the upper right corner or press Ctrl-F.
By default, search is case sensitive, but this can be toggled by pressing Ctrl-I or by clicking the _ic_ button in the upper right corner.

Other sites:
- The Flame Graph article in ACMQ and CACM: http://queue.acm.org/detail.cfm?id=2927301 http://cacm.acm.org/magazines/2016/6/202665-the-flame-graph/abstract
- CPU profiling using Linux perf\_events, DTrace, SystemTap, or ktap: http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html
Expand Down
3 changes: 2 additions & 1 deletion flamegraph.pl
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,8 @@ sub flow {
if (!searching) {
var term = prompt("Enter a search term (regexp " +
"allowed, eg: ^ext4_)"
+ (ignorecase ? ", ignoring case" : ""), "");
+ (ignorecase ? ", ignoring case" : "")
+ "\\nPress Ctrl-i to toggle case sensitivity", "");
if (term != null) {
currentSearchTerm = term;
search();
Expand Down

0 comments on commit 56dff76

Please sign in to comment.