From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id eOpuM/o3z2RHbQAASxT56A (envelope-from ) for ; Sun, 06 Aug 2023 08:04:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IA8RM/o3z2SQ5QAA9RJhRA (envelope-from ) for ; Sun, 06 Aug 2023 08:04:42 +0200 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 8A8BE49D7A for ; Sun, 6 Aug 2023 08:04:42 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm1 header.b=oYPKXqF4; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=w9uyUzo6; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691301882; a=rsa-sha256; cv=none; b=Y8vzpN9ZxwzT90fcOuAoIYrb76K/ywh4ZLDBUkfmi+rBKp+FUL9BwzfZWZmb2GjghJCu3d SzZbpt+RefMOMeM9pXisQ4g5spEsmaKGOccZbmAPgqVJtYH9yhcgshxp/WekYea/raopBt MgoTR21qJ7aytMmdrjOvZNVG5xIkGLVKZLqfXDU0Gw6NfZVX8W/J1lqJZZ2ranqMfL/bp/ MBJUMyFUPv+94Mik4i7ZFvqO+wqvX/Ez09+Sn5lXc97HI343UOFgsZQD4QkUbRsR0YQ/+v XktzYkKEzNMKhMLoPHu9T0UXxjr6opHknKjT8DMnCaBYO3v9jMooA2KY5nBnUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691301882; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=lTHdEoXpD4/jonNeEFV6MryEnGdtVETtUFN/IgEoh4k=; b=pWi7dsVOTl9pnU8+GSkJnsle2BFBfr+/gPXXH8TaJzkSee7JAx9CgonMwkOT3V8rgtskJE WxADQZ1c6Qc85K/iNidOWNHshGIvsiJ5RjRX+d6N5gjW3Fki18fVdOMbTyJnnH+I46WwPT NegXlm+FVPggyufjdqgEFrStGkhypsgb1c+U2/QwjvbdQJWadtcKKNBZZZcwJMYpsa7RM/ amoXfGI7JB+/X7xmdkKndgasG0ekZgPLVfdx1aO0hfsEwJhQ6LyWZNhET4mmjHNZyi4CdZ w9QAn3O8ihxredLQ66nJ6TqEsuiN3PkVnA6hvTMpY3px6xM6Fq4lZ3A3OqgLcw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dan.games header.s=fm1 header.b=oYPKXqF4; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=w9uyUzo6; 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"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSWWk-0008HQ-9B; Sun, 06 Aug 2023 01:42:06 -0400 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 1qSWWg-0008H9-Rz for guix-patches@gnu.org; Sun, 06 Aug 2023 01:42:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qSWWg-0002Me-D1 for guix-patches@gnu.org; Sun, 06 Aug 2023 01:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qSWWf-0003gu-UG for guix-patches@gnu.org; Sun, 06 Aug 2023 01:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65106] [PATCH] gnu: Add tracy. Resent-From: dan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 06 Aug 2023 05:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65106 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65106@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169130048414141 (code B ref -1); Sun, 06 Aug 2023 05:42:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Aug 2023 05:41:24 +0000 Received: from localhost ([127.0.0.1]:58531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSWW3-0003g1-MX for submit@debbugs.gnu.org; Sun, 06 Aug 2023 01:41:24 -0400 Received: from lists.gnu.org ([2001:470:142::17]:33832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qSWW0-0003fm-Up for submit@debbugs.gnu.org; Sun, 06 Aug 2023 01:41:22 -0400 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 1qSWVu-0007y5-BH for guix-patches@gnu.org; Sun, 06 Aug 2023 01:41:14 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSWVr-0002Ag-7n for guix-patches@gnu.org; Sun, 06 Aug 2023 01:41:13 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 8023A32002E8 for ; Sun, 6 Aug 2023 01:41:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 06 Aug 2023 01:41:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dan.games; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm1; t=1691300467; x=1691386867; bh=lT HdEoXpD4/jonNeEFV6MryEnGdtVETtUFN/IgEoh4k=; b=oYPKXqF4na6CXEsK8m LmiuNcKUbPL14TUmsfdZ19B7HwCuIHZu7QkAyX4ryxdOiG9g1iGvXQ4cduWlpnUj B9jLualIPzj15b9iLBF1X9coYi7OE+OWmVxlIzhvN/XC+lLH8fHrLUFQ7VJjDqOP U1/wZlHhWDTuhcdtri+kiepKlp+etSBPnqbIqJ/I2gtzRLN2d2on/qNk/vjqUTlD yAAe9XCRJ10Jb5XxgmLDrghv8I5APa+HIF2i34W6LAvD902M3uEctSO9sYSOuvM0 wOY6xvni0FAqS48tHxj8B1+qL0sd94OFDuO0gs6QCXfoJBskkzqj4M6xUHGgLT1I MXBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1691300467; x=1691386867; bh=lTHdEoXpD4/jo nNeEFV6MryEnGdtVETtUFN/IgEoh4k=; b=w9uyUzo6qbBVCgXynTEc1V8Xq9oEs /zCm5XChYqMrkBvjmTw6yjVtPS5Tx5zQXEwOAzudY/mEYIcE+ztLSWY56LC94i13 gYL0jmnyjkAbOVi4ZRhzEXoc7y+zW3bn505ojhSznthWvC5RVuRJHZT1pdj8RDNk YlBtaKp7GVEq4PHvVN3wggR6M7KCXtBYsY4wCHwLUDedbE3C+iWotwTMiw9YkGsn NDXkiWWKUYGagN3p77noFNiUhcugILlqcfS4Y+ZzfCpwtQs57pUmiLuybeWukjbg CZ6DVkNRv9hEtM1FY5xCUpSXRDgOE4euqmPeXa/IxA0ZlwRZUktccl9wQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrkeejgdelkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffogggtgfesthekredtre dtjeenucfhrhhomhepuggrnhcuoehisegurghnrdhgrghmvghsqeenucggtffrrghtthgv rhhnpedttddutdejvdegvdetfeeiieevleffteehfffgveeuieetleelveefvdduveejgf enucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepihesuggrnhdrghgrmhgvsh X-ME-Proxy: Feedback-ID: i3b5946ed:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 6 Aug 2023 01:41:05 -0400 (EDT) From: dan Date: Sun, 6 Aug 2023 13:40:10 +0800 Message-ID: <20230806054011.16970-1-i@dan.games> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=64.147.123.25; envelope-from=i@dan.games; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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 X-Migadu-Spam-Score: -4.24 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: 8A8BE49D7A X-Spam-Score: -4.24 X-TUID: ikc5UUS7oH1m --- gnu/packages/profiling.scm | 48 +++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/gnu/packages/profiling.scm b/gnu/packages/profiling.scm index 8a1c609669..799b333162 100644 --- a/gnu/packages/profiling.scm +++ b/gnu/packages/profiling.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2017 Dave Love ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2022 Ludovic Courtès +;;; Copyright © 2023 dan ;;; ;;; This file is part of GNU Guix. ;;; @@ -21,6 +22,7 @@ (define-module (gnu packages profiling) #:use-module (guix packages) #:use-module (guix gexp) + #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) ; avoid zlib, expat clashes #:use-module (guix download) #:use-module (guix utils) @@ -31,17 +33,20 @@ (define-module (gnu packages profiling) #:use-module (gnu packages bison) #:use-module (gnu packages compression) #:use-module (gnu packages documentation) + #:use-module (gnu packages engineering) #:use-module (gnu packages fabric-management) #:use-module (gnu packages flex) + #:use-module (gnu packages fontutils) #:use-module (gnu packages gawk) #:use-module (gnu packages gcc) + #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages libunwind) #:use-module (gnu packages linux) #:use-module (gnu packages mpi) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) - #:use-module (gnu packages perl) + #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages qt)) @@ -389,3 +394,44 @@ (define (make-scorep mpi) (license license:cpl1.0))) (define-public scorep-openmpi (make-scorep openmpi)) + +(define-public tracy + (package + (name "tracy") + (version "0.9.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/wolfpld/tracy.git") + (commit (string-append "v" version)))) + (sha256 + (base32 + "1znw1r1c4vrb9vrsr08gcwynpjda8xxmb3923yykpymw2hsm0n9b")) + (file-name (git-file-name "tracy" version)))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;no test for the profiler + #:make-flags #~(list "LEGACY=1" + (string-append "CC=" + #$(cc-for-target))) + #:phases #~(modify-phases %standard-phases + (replace 'configure + (lambda _ + (chdir "profiler/build/unix"))) + (replace 'install + (lambda _ + (let ((out (string-append #$output "/bin/tracy")) + (bin (string-append #$output "/bin"))) + (mkdir-p bin) + (copy-file "Tracy-release" out) + (wrap-program out + `("LD_LIBRARY_PATH" ":" = + (,(string-append #$mesa "/lib")))))))))) + (inputs (list capstone dbus freetype glfw)) + (native-inputs (list pkg-config)) + (home-page "https://github.com/wolfpld/tracy") + (synopsis "Frame profiler") + (description + "A real time, nanosecond resolution, remote telemetry, hybrid frame and +sampling profiler for games and other applications.") + (license license:bsd-3))) base-commit: c4b9f726e3a1889b92a4b14a2af1c25f10798469 -- 2.41.0