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 ms0.migadu.com with LMTPS id GGkYNPQa52EWuQAAgWs5BA (envelope-from ) for ; Tue, 18 Jan 2022 20:54:28 +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 gO/1MPQa52FsAgAAauVa8A (envelope-from ) for ; Tue, 18 Jan 2022 20:54:28 +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 9570E1A23F for ; Tue, 18 Jan 2022 20:54:28 +0100 (CET) Received: from localhost ([::1]:34176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9uYl-0004q7-Cg for larch@yhetil.org; Tue, 18 Jan 2022 14:54:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9u3Q-0000Ax-Su for guix-patches@gnu.org; Tue, 18 Jan 2022 14:22:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:58835) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9u3O-0008DV-0y for guix-patches@gnu.org; Tue, 18 Jan 2022 14:22:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n9u3N-0002TR-MA for guix-patches@gnu.org; Tue, 18 Jan 2022 14:22:01 -0500 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= 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-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" Reply-to: Olivier Dion X-ACL-Warn: , Olivier Dion via Guix-patches From: Olivier Dion via Guix-patches via 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=1642535668; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=5BhhOB/xKAvHf6eUfVidktfsFt5wNqHBHsW8E6uQMLI=; b=BZwRdQJFDNkjSNqs8ZA8q/UdcalJ6njIfwAYWfBWRh6ZnlsZgqsrIRTsVSg5PVnyuB0YHC KXnhizo6syyJM/lufSfOsgrNoT89VedGcQ3BcyskYIh+FkhWMMQq+JHh7GaFpv3p/34wro 4Q1c5Jq3HAw9PkJD1NIeUHOroUsYW0vpo5m3jRWLiWGTgWGhKY7lwRlhQZ+g4lelT/i50D hyamM4yf9R6ug0n6qoM+dCWrFeJ3ZcdIFY2CSd+eIre17wJPbz0K0PPpXf1T/cWMS78oBr fjJuf2b2qZlWOfA9rXer2YZZyGCSlBXWcIL+UBH6gmUl5qGJ6LQaf2uga0St8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642535668; a=rsa-sha256; cv=none; b=ChQ2WxMfTGtY+xbC9IzsEpuqN8tN2S6hPT6iPp0aelrvH+0eg2VaiBZWdVVgBYXNmtsXoa eY+8zFEUEgqIi4Ml4ljWyYo1HOLF7hJc9UGnWDyyRVbl02kjqa0rKBqPS92lVZobvwigva aeJ80xHgf5n0iUMApMzp4jGP5LipXXiMIu2iYF673AiqXFJ28w9tQhLmPE2JBgSMdQRdJc 0hQ2tfSZsTv56wvpGKFWN/26jLCXYcSadQnc3i9WqR8x/kYc80Vt4+oYLJXPhBoEYLEcSn 7bT6/ZZGFnaLWxn/y/g/HsP11Rt5RiWO7Z85iPrHfUFCX127tOQRS3J+7CMChw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polymtl.ca header.s=default header.b=hH75g98B; dmarc=pass (policy=none) header.from=gnu.org; 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: -3.52 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polymtl.ca header.s=default header.b=hH75g98B; dmarc=pass (policy=none) header.from=gnu.org; 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: 9570E1A23F X-Spam-Score: -3.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7u5IyJyBcWB7 * 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