1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
Description: we're installing flamegraph.pl under /usr/share
so call it from there
Origin: vendor
Bug-Debian: http://bugs.debian.org/718731
Forwarded: https://github.com/timbunce/devel-nytprof/issues/13
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2013-09-22
--- a/bin/nytprofhtml
+++ b/bin/nytprofhtml
@@ -814,7 +814,7 @@
# total (width) for flamegraph is profiler_active in ticks
my $run_us = $profile->{attribute}{profiler_active} * $profile->{attribute}{ticks_per_sec};
my $extension = $^O eq "MSWin32" ? "" : ".pl";
- my $fg_cmd = "flamegraph$extension --nametype=sub --countname=microseconds";
+ my $fg_cmd = "/usr/share/perl5/Devel/NYTProf/flamegraph$extension --nametype=sub --countname=microseconds";
system("$fg_cmd --factor=$factor --nameattr=$subattr --total=$run_us $opt_out/$call_stacks_file > $opt_out/$call_stacks_svg") == 0
or die "Generating $opt_out/$call_stacks_svg failed\n";
|