Subject: [bug#67428] [PATCH v2 04/12] gnu: Add cl-metering

From: Michal Atlas <[email-masked]>
Date: Fri, 24 Nov 2023 17:07:09 +0000

* gnu/packages/lisp-xyz.scm (sbcl-metering, ecl-metering, cl-metering): New variables.

Change-Id: I7bc9ec158f7c3eb97ba0386ee8dffeeca2274b31
---
 gnu/packages/lisp-xyz.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 0ba6b33dcb..153274cdc5 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20526,6 +20526,38 @@ (define-public ecl-alexa
 (define-public cl-alexa
   (sbcl-package->cl-source-package sbcl-alexa))
 
+(define-public sbcl-metering
+  (let ((commit "62dbaa5e8d29d2f213b881d740114941c2c3d1be")
+        (revision "0"))
+    (package
+      (name "sbcl-metering")
+      (version (git-version "3.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://gitlab.common-lisp.net/dkochmanski/metering")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0jx3ypk8m815yp7208xkcxkvila847mvna25a2p22ihnj0ms9rn1"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs (list sbcl-fiveam))
+      (synopsis
+       "The Metering System is a portable Common Lisp code profiling tool")
+      (description
+       "The Metering System is a portable Common Lisp code profiling tool.
+  It gathers timing and consing statistics for specified functions
+  while a program is running")
+      (home-page "https://gitlab.common-lisp.net/dkochmanski/metering")
+      (license license:cc0))))
+
+(define-public ecl-metering
+  (sbcl-package->ecl-package sbcl-metering))
+
+(define-public cl-metering
+  (sbcl-package->cl-source-package sbcl-metering))
+
 (define-public sbcl-messagebox
   (let ((commit "ea3688d9a9954bee7079c0173bc7b3f327021e9f")
         (revision "1"))
-- 
2.41.0