[libdevel-nytprof-perl] 02/03: Add patch to use the helper script under /usr/share.

gregor herrmann gregoa at debian.org
Wed Aug 7 18:56:24 UTC 2013


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libdevel-nytprof-perl.

commit f4b70df33d893a46b821a6eff723ef91e73e01a1
Author: gregor herrmann <gregoa at debian.org>
Date:   Wed Aug 7 20:51:50 2013 +0200

    Add patch to use the helper script under /usr/share.
    
    Thanks: Simon Ruderich for the bug report.
    Closes: #718731
---
 debian/patches/flamegraph.patch |   19 +++++++++++++++++++
 debian/patches/series           |    1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/flamegraph.patch b/debian/patches/flamegraph.patch
new file mode 100644
index 0000000..1e90b1d
--- /dev/null
+++ b/debian/patches/flamegraph.patch
@@ -0,0 +1,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: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2013-08-07
+
+--- a/bin/nytprofhtml
++++ b/bin/nytprofhtml
+@@ -813,7 +813,7 @@
+             my $factor = 1_000_000 / $profile->{attribute}{ticks_per_sec};
+             # total (width) for flamegraph is profiler_active in ticks
+             my $run_us = $profile->{attribute}{profiler_active} * $profile->{attribute}{ticks_per_sec};
+-            my $fg_cmd = "flamegraph.pl --nametype=sub --countname=microseconds";
++            my $fg_cmd = "/usr/share/perl5/Devel/NYTProf/flamegraph.pl --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";
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 793b79b..c5fa0bb 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 manpage-section.patch
 usr-share.patch
+flamegraph.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdevel-nytprof-perl.git



More information about the Pkg-perl-cvs-commits mailing list