emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#53351: closed ([PATCH] gnu: Add flamegraph.)


From: GNU bug Tracking System
Subject: bug#53351: closed ([PATCH] gnu: Add flamegraph.)
Date: Thu, 20 Jan 2022 14:03:01 +0000

Your message dated Thu, 20 Jan 2022 15:02:46 +0100
with message-id <871r1233p5.fsf@gnu.org>
and subject line Re: bug#53351: [PATCH] gnu: Add flamegraph.
has caused the debbugs.gnu.org bug report #53351,
regarding [PATCH] gnu: Add flamegraph.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
53351: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=53351
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Add flamegraph. Date: Tue, 18 Jan 2022 14:20:15 -0500
* gnu/packages/instrumentation.scm: (flamegraph): New variable.
---
 gnu/packages/instrumentation.scm | 44 +++++++++++++++++++++++++++++++-
 1 file changed, 43 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/instrumentation.scm b/gnu/packages/instrumentation.scm
index 86b80d65ec..49c58ec382 100644
--- a/gnu/packages/instrumentation.scm
+++ b/gnu/packages/instrumentation.scm
@@ -38,12 +38,14 @@ (define-module (gnu packages instrumentation)
   #:use-module (gnu packages tbb)
   #:use-module (gnu packages xml)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
   #:use-module (guix download)
   #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module ((guix licenses) #:prefix license:)
-  #:use-module (guix packages))
+  #:use-module (guix packages)
+  #:use-module (srfi srfi-26))
 
 (define-public babeltrace
   (package
@@ -153,6 +155,46 @@ (define-public dyninst
 with a handful of C++ libraries.")
     (license license:lgpl2.1+)))
 
+(define-public flamegraph
+  (package
+    (name "flamegraph")
+    (version "1.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/brendangregg/FlameGraph";)
+                    ;; No new version since 2019, but there's still some new
+                    ;; important commits.
+                    (commit "810687f180f3c4929b5d965f54817a5218c9d89b")))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1lg02mxzdsm9szn4vcmx76c1bw9gqmxqk8n6v63v03036sc83s22"))))
+
+    (build-system copy-build-system)
+    (arguments
+     `(#:install-plan
+       ',(map (cut list <> "bin/")
+              '("flamegraph.pl"
+                "stackcollapse.pl"
+                "stackcollapse-perf.pl"
+                "stackcollapse-pmc.pl"
+                "stackcollapse-stap.pl"
+                "stackcollapse-instruments.pl"
+                "stackcollapse-vtune.pl"
+                "stackcollapse-jstack.pl"
+                "stackcollapse-gdb.pl"
+                "stackcollapse-go.pl"
+                "stackcollapse-vsprof.pl"
+                "stackcollapse-wcp.pl"))))
+    (inputs (list perl))
+    (home-page "http://www.brendangregg.com/flamegraphs.html";)
+    (synopsis "Stack trace visualizer")
+    (description "Flamegraph is a collection of scripts that generate
+interactive SVGs out of traces genated from various tracing tools.  It comes
+with the script @command{flamegraph.pl} and many stackcollapse scripts.")
+    (license license:cddl1.0)))
+
 (define-public lttng-ust
   (package
     (name "lttng-ust")
-- 
2.34.0




--- End Message ---
--- Begin Message --- Subject: Re: bug#53351: [PATCH] gnu: Add flamegraph. Date: Thu, 20 Jan 2022 15:02:46 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
Hello Olivier,

Something went wrong with the patch export format as the commit message
appears as a separate MIME part here. Did you use "git send-email"?

> +    (version "1.0")

I modified the version to: 1.0-1.810687f so that it takes the selected
commit into account.

Pushed as 410211c42388f99c22a7b4140553be35e696400e.

Thanks,

Mathieu


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]