From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8DpxIpiZdGO3PQAAbAwnHQ (envelope-from ) for ; Wed, 16 Nov 2022 09:04:40 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6N8zIpiZdGP8ZAAAauVa8A (envelope-from ) for ; Wed, 16 Nov 2022 09:04:40 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 46FA72EDFA for ; Wed, 16 Nov 2022 09:04:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovDP1-0000nb-3p; Wed, 16 Nov 2022 03:04:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovDOs-0000m2-Dr for guix-patches@gnu.org; Wed, 16 Nov 2022 03:04:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovDOs-0008Cq-5P for guix-patches@gnu.org; Wed, 16 Nov 2022 03:04:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovDOs-0004D6-1i for guix-patches@gnu.org; Wed, 16 Nov 2022 03:04:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59301] [PATCH] gnu: Add cl-flamegraph. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 16 Nov 2022 08:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59301 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59301@debbugs.gnu.org Cc: "Paul A. Patience" X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166858580416117 (code B ref -1); Wed, 16 Nov 2022 08:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Nov 2022 08:03:24 +0000 Received: from localhost ([127.0.0.1]:55935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovDOG-0004Bs-0S for submit@debbugs.gnu.org; Wed, 16 Nov 2022 03:03:24 -0500 Received: from lists.gnu.org ([209.51.188.17]:56768) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovDOC-0004Bj-Sd for submit@debbugs.gnu.org; Wed, 16 Nov 2022 03:03:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovDO9-0000hb-UN for guix-patches@gnu.org; Wed, 16 Nov 2022 03:03:20 -0500 Received: from mail-4323.proton.ch ([185.70.43.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovDO6-00086s-6T for guix-patches@gnu.org; Wed, 16 Nov 2022 03:03:17 -0500 Date: Wed, 16 Nov 2022 08:02:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail3; t=1668585788; x=1668844988; bh=JlDuOOWffY/f32PMAFp6oWsMQdE6eHTljSev9JG3QiM=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=LrMa5ly+no1efLLi4uk2PApGbzPWCEPeHGm3+Ay05JfWTmFz7RQDWyNhNCNmBbBcM cQmEDsxXqZxifnGib0gHzkfAfgzDeags8ILl0ZaiynuYicoNXNrRbYDgnjsOLVrZHb 5r5dw8tiMrUD3r0AqK+mOyBm8WMkUGVpk7oIULMUeS7+Q1afSwAhl77FStH36TgGI/ MJ27aROCqM2bJZFSMnUucK497JNu2uPU+KkRSBc+Wr4Z7GADqwOqqQqawy+jy8rB7i BXgV5tsXDDvp949LKbZ+6NMHAgbkSC5P+Q0mZ8Qu8jEw9czlgaiv+K3e0UJZHSq13u 6KxhYP7Jaq7LQ== From: "Paul A. Patience" Message-ID: <20221116080251.128957-1-paul@apatience.com> Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.23; envelope-from=paul@apatience.com; helo=mail-4323.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668585880; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JlDuOOWffY/f32PMAFp6oWsMQdE6eHTljSev9JG3QiM=; b=rAgo1hJu5W0B7J+Twh/XBb/6kAYIz6AT8jwvsbcEIyak95zI0JahMjZy9dV4BTtHBoUs6I kMC/gAfLJJpWTPWiHYTzdko8q1Y448qLtEr8FJebYOcPj7zZ07fBJFG+MaeTYuk6jCNoAy OrB+fc/EyfuCRvGnfpviHbKBZB+iMFT6GlsYWmz6SeKBobH3pVuWZ62Twf/bTiDVxj6pvX eJJ0FQ1aH5WsOFMNMWh99lp8J+gF2c/Bo3ZkA9xr+dS0/IZbL0qmlw12XgzN9kO2w+2LI5 aJlTAm1ZSeDmVSI784Lt51wEDfhaDOENBvG9woL0nE5LTEZt1RCJtfYOIHXHcg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668585880; a=rsa-sha256; cv=none; b=YRqSocsAOWOZSCDeeA4xqzjIwuIHMHvk0T5dQqS7nkk+zhMmKtOUb7SJLBE/CKJnZHBkPf QelJ62VV2ZT73w87QmIZvVnKGa0kxm1GdA4lIofVSUzg38qmkMLVJyA1Om2Z//0GPtN795 x6Z4/2YcQiOyVRFCfBjoWuSVsC2dRsXwK4a9vX5FqTC17rYNw2zrBWfIT8prhxooJEgMtN EF3IDwWpsMWourgx6l2P+zX2sNBVijh3nrS7HyPAGp52/xpbiLg2+L+yNz/x8Da11eZJV6 lRJPU/ZZ1Iahs9ouW6ZBGat85MU9w6y5wEFI78sFTkp++O4XB3Lq8Nr92L9XyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail3 header.b=LrMa5ly+; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 0.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail3 header.b=LrMa5ly+; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 46FA72EDFA X-Spam-Score: 0.86 X-Migadu-Scanner: scn0.migadu.com X-TUID: tw7IPCxJ4x9U * 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 profil= er. +It saves stack traces of profiled code in a form suitable for processing b= y +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