all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#53351] [PATCH] gnu: Add flamegraph.
@ 2022-01-18 19:20 Olivier Dion via Guix-patches via
  2022-01-20 14:02 ` bug#53351: " Mathieu Othacehe
  0 siblings, 1 reply; 3+ messages in thread
From: Olivier Dion via Guix-patches via @ 2022-01-18 19:20 UTC (permalink / raw)
  To: 53351; +Cc: Olivier Dion

* 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





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#53351: [PATCH] gnu: Add flamegraph.
  2022-01-18 19:20 [bug#53351] [PATCH] gnu: Add flamegraph Olivier Dion via Guix-patches via
@ 2022-01-20 14:02 ` Mathieu Othacehe
  2022-01-20 14:27   ` [bug#53351] " Olivier Dion via Guix-patches via
  0 siblings, 1 reply; 3+ messages in thread
From: Mathieu Othacehe @ 2022-01-20 14:02 UTC (permalink / raw)
  To: Olivier Dion; +Cc: 53351-done


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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#53351] [PATCH] gnu: Add flamegraph.
  2022-01-20 14:02 ` bug#53351: " Mathieu Othacehe
@ 2022-01-20 14:27   ` Olivier Dion via Guix-patches via
  0 siblings, 0 replies; 3+ messages in thread
From: Olivier Dion via Guix-patches via @ 2022-01-20 14:27 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 53351-done

On Thu, 20 Jan 2022, Mathieu Othacehe <othacehe@gnu.org> wrote:
> 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"?

Yes as I always I use git-send-email.  Weird.


>> +    (version "1.0")
>
> I modified the version to: 1.0-1.810687f so that it takes the selected
> commit into account.
>
> Pushed as 410211c42388f99c22a7b4140553be35e696400e.

Thank you!

-- 
Olivier Dion
Polymtl




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-20 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-18 19:20 [bug#53351] [PATCH] gnu: Add flamegraph Olivier Dion via Guix-patches via
2022-01-20 14:02 ` bug#53351: " Mathieu Othacehe
2022-01-20 14:27   ` [bug#53351] " Olivier Dion via Guix-patches via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.