From 1ce81fdd5e49ccf483b93430b7618c5e251eed0d Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 30 May 2025 20:27:31 -0400 Subject: Add austin python profiler package definition --- .config/guix/modules/packages/python-austin.scm | 37 +++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .config/guix/modules/packages/python-austin.scm (limited to '.config/guix/modules/packages/python-austin.scm') diff --git a/.config/guix/modules/packages/python-austin.scm b/.config/guix/modules/packages/python-austin.scm new file mode 100644 index 0000000..61a8e1c --- /dev/null +++ b/.config/guix/modules/packages/python-austin.scm @@ -0,0 +1,37 @@ +(define-module (packages python-austin) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages) + #:use-module (guix packages) + #:use-module (gnu packages autotools) + #:use-module (guix gexp) + #:use-module (guix build-system gnu) + #:use-module (guix git-download) + #:export (python-austin)) + +;;; Commentary: +;;; provides austin, a python frame stack sampler (profiler) +;;; Code: + + +(define python-austin + (package + (name "python-austin") + (version "3.7.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/P403n1x87/austin") + (commit (string-append "v" version)) + (recursive? #f))) + (sha256 + (base32 "0074gjkf7agkbgs7k9py2gk7i4ir27bq12mbnslm3fwnxl3vyxk0")))) + (build-system gnu-build-system) + (native-inputs (list autoconf automake)) + (home-page "https://github.com/P403n1x87/austin") + (synopsis "Python frame stack sampler for CPython.") + (description + "Austin is a Python frame stack sampler for CPython written in pure C. Samples are collected by reading the CPython interpreter virtual memory space to retrieve information about the currently running threads along with the stack of the frames that are being executed. Hence, one can use Austin to easily make powerful statistical profilers that have minimal impact on the target application and that don't require any instrumentation.") + (license (list license:gpl3+)))) + +;;; python-austin.scm ends here -- cgit v1.2.3