Skip to content

Commit

Permalink
Add patch truncated names for templates for flamegraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
HLilit committed Jul 19, 2019
1 parent eb5deb3 commit 6fa3f51
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/modules/FlameGraph.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ include(ExternalProject)
ExternalProject_Add(FlameGraph
GIT_REPOSITORY "https://github.com/brendangregg/FlameGraph.git"
UPDATE_COMMAND ""
PATCH_COMMAND ""
PATCH_COMMAND patch < ${CMAKE_SOURCE_DIR}/rootbench-scripts/stackcollapse-perf.patch
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
EXCLUDE_FROM_ALL 1
)


13 changes: 13 additions & 0 deletions rootbench-scripts/stackcollapse-perf.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/stackcollapse-perf.pl b/stackcollapse-perf.pl
index e91f7de..fe88660 100755
--- a/stackcollapse-perf.pl
+++ b/stackcollapse-perf.pl
@@ -80,7 +80,7 @@ my $include_pid = 0; # include process ID with process name
my $include_tid = 0; # include process & thread ID with process name
my $include_addrs = 0; # include raw address where a symbol can't be found
my $tidy_java = 1; # condense Java signatures
-my $tidy_generic = 1; # clean up function names a little
+my $tidy_generic = 0; # clean up function names a little
my $target_pname; # target process name from perf invocation
my $event_filter = ""; # event type filter, defaults to first encountered event
my $event_defaulted = 0; # whether we defaulted to an event (none provided)

0 comments on commit 6fa3f51

Please sign in to comment.