commit 56dff76695fd7e7b11eda2bd08e1da8e41072e13
parent 21eed7d2c9eb264410f784eb3e49a1efdc3da6f3
Author: Brendan Gregg <brendan.d.gregg@gmail.com>
Date: Thu, 24 Oct 2019 14:53:32 -0700
Merge pull request #216 from knittl/feature/search-improvements-docs
Interactive search documentation
Diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
@@ -3,8 +3,13 @@
Main Website: http://www.brendangregg.com/flamegraphs.html
Example (click to zoom):
+
[](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
diff --git a/flamegraph.pl b/flamegraph.pl
@@ -992,7 +992,8 @@ my $inc = <<INC;
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();