From unknown Sun Jun 22 04:01:08 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53351] [PATCH] gnu: Add flamegraph. Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 18 Jan 2022 19:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53351 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53351@debbugs.gnu.org Cc: Olivier Dion X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16425337159494 (code B ref -1); Tue, 18 Jan 2022 19:22:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jan 2022 19:21:55 +0000 Received: from localhost ([127.0.0.1]:51738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9u36-0002Sr-Ah for submit@debbugs.gnu.org; Tue, 18 Jan 2022 14:21:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:50254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9u31-0002Sh-Vy for submit@debbugs.gnu.org; Tue, 18 Jan 2022 14:21:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9u2w-0008Tg-1B for guix-patches@gnu.org; Tue, 18 Jan 2022 14:21:39 -0500 Received: from smtp.polymtl.ca ([132.207.4.11]:41348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9u2t-00082M-Fs for guix-patches@gnu.org; Tue, 18 Jan 2022 14:21:33 -0500 Received: from laura.hitronhub.home (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 20IJKGIt001048 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 18 Jan 2022 14:20:28 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 20IJKGIt001048 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1642533629; bh=5BhhOB/xKAvHf6eUfVidktfsFt5wNqHBHsW8E6uQMLI=; h=From:To:Cc:Subject:Date:From; b=hH75g98BZWERdyGR57H29eJpcFHHBKXL9W8AKQ6VFRwx1SFlwpSqvnFNTt69T/f0i pQdAFedrkRMr/J5HLaq2POOiBpmsF0qHNq56OToAN73+vIeLHTlFxfyUeMq7q170eT T6FmICUtDnGd3pxVxvf+EUEJJGGp2ygPdpUg4w5g= From: Olivier Dion Date: Tue, 18 Jan 2022 14:20:15 -0500 Message-Id: X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Tue, 18 Jan 2022 19:20:16 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * 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 From unknown Sun Jun 22 04:01:08 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Olivier Dion Subject: bug#53351: closed (Re: bug#53351: [PATCH] gnu: Add flamegraph.) Message-ID: References: <871r1233p5.fsf@gnu.org> X-Gnu-PR-Message: they-closed 53351 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 53351@debbugs.gnu.org Date: Thu, 20 Jan 2022 14:03:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1642687381-18075-1" This is a multi-part message in MIME format... ------------=_1642687381-18075-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #53351: [PATCH] gnu: Add flamegraph. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 53351@debbugs.gnu.org. --=20 53351: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D53351 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1642687381-18075-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 53351-done) by debbugs.gnu.org; 20 Jan 2022 14:02:57 +0000 Received: from localhost ([127.0.0.1]:56902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAY1g-0004hH-Qk for submit@debbugs.gnu.org; Thu, 20 Jan 2022 09:02:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAY1e-0004h3-Pb for 53351-done@debbugs.gnu.org; Thu, 20 Jan 2022 09:02:55 -0500 Received: from [2001:470:142:3::e] (port=42014 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAY1Y-0007xp-IB; Thu, 20 Jan 2022 09:02:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=/dK3tFhG4aAZacGdNPmms5/Fsh4IcVbF8/ofEsZvpNc=; b=HSAExH/3STAKODGE/UlJ PEbXY4soSvoJclw6kzE+yAkyipXp7IuXLnGnTeb0Vs8ByL7m7Z53B98hSTMXghvtG8syjBddzWMWx hhaUtIiBuUhp8AsnwQ9poXj/v0hVT8Kk+7JCOr6o8yLSbgziTg+OVcYyP2hdrt6/T7uaDGNIhoZIS jhRmohEfD4f/r6bvVx2Qfr3H5zcdKf9KdWETINRka/+79+279eWmuc1Qvhk+WZjbwp2jMQ/i4nG8h F+q4mjp3w/li/r6U5JWa2pJMwobuYwBnepNWcJYh6J+6ps8hnkAQ8EeyCFkq+XLg5vdjmrq8euCnw m1KdRoBSydGv4A==; Received: from [2a01:e0a:19b:d9a0:2f3b:16f2:b776:3ef9] (port=36480 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nAY1Y-0008Aq-K3; Thu, 20 Jan 2022 09:02:48 -0500 From: Mathieu Othacehe To: Olivier Dion Subject: Re: bug#53351: [PATCH] gnu: Add flamegraph. References: Date: Thu, 20 Jan 2022 15:02:46 +0100 In-Reply-To: (Olivier Dion's message of "Tue, 18 Jan 2022 14:20:15 -0500") Message-ID: <871r1233p5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53351-done Cc: 53351-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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 ------------=_1642687381-18075-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Jan 2022 19:21:55 +0000 Received: from localhost ([127.0.0.1]:51738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9u36-0002Sr-Ah for submit@debbugs.gnu.org; Tue, 18 Jan 2022 14:21:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:50254) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9u31-0002Sh-Vy for submit@debbugs.gnu.org; Tue, 18 Jan 2022 14:21:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9u2w-0008Tg-1B for guix-patches@gnu.org; Tue, 18 Jan 2022 14:21:39 -0500 Received: from smtp.polymtl.ca ([132.207.4.11]:41348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9u2t-00082M-Fs for guix-patches@gnu.org; Tue, 18 Jan 2022 14:21:33 -0500 Received: from laura.hitronhub.home (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 20IJKGIt001048 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 18 Jan 2022 14:20:28 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 20IJKGIt001048 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1642533629; bh=5BhhOB/xKAvHf6eUfVidktfsFt5wNqHBHsW8E6uQMLI=; h=From:To:Cc:Subject:Date:From; b=hH75g98BZWERdyGR57H29eJpcFHHBKXL9W8AKQ6VFRwx1SFlwpSqvnFNTt69T/f0i pQdAFedrkRMr/J5HLaq2POOiBpmsF0qHNq56OToAN73+vIeLHTlFxfyUeMq7q170eT T6FmICUtDnGd3pxVxvf+EUEJJGGp2ygPdpUg4w5g= From: Olivier Dion To: guix-patches@gnu.org Subject: [PATCH] gnu: Add flamegraph. Date: Tue, 18 Jan 2022 14:20:15 -0500 Message-Id: X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Tue, 18 Jan 2022 19:20:16 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Olivier Dion X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) * 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 ------------=_1642687381-18075-1-- From unknown Sun Jun 22 04:01:08 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#53351] [PATCH] gnu: Add flamegraph. Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Jan 2022 14:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53351 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Mathieu Othacehe Cc: 53351-done@debbugs.gnu.org Received: via spool by 53351-done@debbugs.gnu.org id=D53351.164268886429342 (code D ref 53351); Thu, 20 Jan 2022 14:28:02 +0000 Received: (at 53351-done) by debbugs.gnu.org; 20 Jan 2022 14:27:44 +0000 Received: from localhost ([127.0.0.1]:56979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAYPg-0007dB-0h for submit@debbugs.gnu.org; Thu, 20 Jan 2022 09:27:44 -0500 Received: from smtp.polymtl.ca ([132.207.4.11]:50300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAYPd-0007cv-WF for 53351-done@debbugs.gnu.org; Thu, 20 Jan 2022 09:27:42 -0500 Received: from localhost (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 20KERUAK016901 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 20 Jan 2022 09:27:35 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 20KERUAK016901 From: Olivier Dion In-Reply-To: <871r1233p5.fsf@gnu.org> References: <871r1233p5.fsf@gnu.org> Date: Thu, 20 Jan 2022 09:27:30 -0500 Message-ID: <87wniuv5wt.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Thu, 20 Jan 2022 14:27:30 +0000 X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Thu, 20 Jan 2022, Mathieu Othacehe 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