summaryrefslogtreecommitdiff
path: root/.config/guix/modules/packages/python-austin.scm
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-05-30 20:27:31 -0400
committerbd <bdunahu@operationnull.com>2025-05-30 20:27:31 -0400
commit1ce81fdd5e49ccf483b93430b7618c5e251eed0d (patch)
tree51b6254071219f3f59b47be12d0ce1845e901187 /.config/guix/modules/packages/python-austin.scm
parent9babd680477ed4a7c1fd761f395f6acaf01bfeb1 (diff)
Add austin python profiler package definition
Diffstat (limited to '.config/guix/modules/packages/python-austin.scm')
-rw-r--r--.config/guix/modules/packages/python-austin.scm37
1 files changed, 37 insertions, 0 deletions
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