all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#59301] [PATCH] gnu: Add cl-flamegraph.
@ 2022-11-16  8:02 Paul A. Patience
  2022-11-16  9:55 ` bug#59301: " Guillaume Le Vaillant
  0 siblings, 1 reply; 2+ messages in thread
From: Paul A. Patience @ 2022-11-16  8:02 UTC (permalink / raw)
  To: 59301; +Cc: Paul A. Patience

* gnu/packages/lisp-xyz.scm (sbcl-flamegraph, cl-flamegraph): New
variables.
---
 gnu/packages/lisp-xyz.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 1c580c7263..428ca87ff8 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -14636,6 +14636,37 @@ (define-public cl-supertrace
 (define-public ecl-supertrace
   (sbcl-package->ecl-package sbcl-supertrace))

+(define-public sbcl-flamegraph
+  (let ((commit "1ed7a718eae88bd35e1649a1c716d46c59dc0a24")
+        (revision "0"))
+    (package
+      (name "sbcl-flamegraph")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               ;; This is a fork with fixes for latest SBCL.
+               (url "https://github.com/ruricolist/cl-flamegraph")
+               (commit commit)))
+         (file-name (git-file-name "cl-flamegraph" version))
+         (sha256
+          (base32 "1aj7hhvav9j9c66ssy11ry3p6xqb912yafi91g6sin6pdx84c2lw"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs
+       (list sbcl-alexandria))
+      (home-page "https://github.com/40ants/cl-flamegraph")
+      (synopsis "Generate flamegraphs of Common Lisp code")
+      (description
+       "@code{cl-flamegraph} is a wrapper around SBCL's statistical profiler.
+It saves stack traces of profiled code in a form suitable for processing by
+the @command{flamegraph.pl} script, which is available in the Guix package
+@code{flamegraph}.")
+      (license license:bsd-3))))
+
+(define-public cl-flamegraph
+  (sbcl-package->cl-source-package sbcl-flamegraph))
+
 (define-public sbcl-trivial-benchmark
   (let ((commit "42d76733dd2e873471c6f1e27d39113293f7dd5c"))
     (package
--
2.38.0






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

* bug#59301: [PATCH] gnu: Add cl-flamegraph.
  2022-11-16  8:02 [bug#59301] [PATCH] gnu: Add cl-flamegraph Paul A. Patience
@ 2022-11-16  9:55 ` Guillaume Le Vaillant
  0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Le Vaillant @ 2022-11-16  9:55 UTC (permalink / raw)
  To: Paul A. Patience; +Cc: 59301-done

[-- Attachment #1: Type: text/plain, Size: 66 bytes --]

Patch pushed as ce9f95609573006820b9a3926dcb95ef0ceb190c.
Thanks.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

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

end of thread, other threads:[~2022-11-16  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-16  8:02 [bug#59301] [PATCH] gnu: Add cl-flamegraph Paul A. Patience
2022-11-16  9:55 ` bug#59301: " Guillaume Le Vaillant

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.