Skip to content

Commit 6fa3f51

Browse files
committed
Add patch truncated names for templates for flamegraphs
1 parent eb5deb3 commit 6fa3f51

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

cmake/modules/FlameGraph.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ include(ExternalProject)
33
ExternalProject_Add(FlameGraph
44
GIT_REPOSITORY "https://github.com/brendangregg/FlameGraph.git"
55
UPDATE_COMMAND ""
6-
PATCH_COMMAND ""
6+
PATCH_COMMAND patch < ${CMAKE_SOURCE_DIR}/rootbench-scripts/stackcollapse-perf.patch
77
CONFIGURE_COMMAND ""
88
BUILD_COMMAND ""
99
INSTALL_COMMAND ""
1010
EXCLUDE_FROM_ALL 1
1111
)
12+
13+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/stackcollapse-perf.pl b/stackcollapse-perf.pl
2+
index e91f7de..fe88660 100755
3+
--- a/stackcollapse-perf.pl
4+
+++ b/stackcollapse-perf.pl
5+
@@ -80,7 +80,7 @@ my $include_pid = 0; # include process ID with process name
6+
my $include_tid = 0; # include process & thread ID with process name
7+
my $include_addrs = 0; # include raw address where a symbol can't be found
8+
my $tidy_java = 1; # condense Java signatures
9+
-my $tidy_generic = 1; # clean up function names a little
10+
+my $tidy_generic = 0; # clean up function names a little
11+
my $target_pname; # target process name from perf invocation
12+
my $event_filter = ""; # event type filter, defaults to first encountered event
13+
my $event_defaulted = 0; # whether we defaulted to an event (none provided)

0 commit comments

Comments
 (0)