[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/45: gnu: Add ocaml-mirage-profile-unix.
From: |
guix-commits |
Subject: |
16/45: gnu: Add ocaml-mirage-profile-unix. |
Date: |
Fri, 17 Feb 2023 10:49:32 -0500 (EST) |
cbaines pushed a commit to branch master
in repository guix.
commit 89c1bc291e2e1ef860b7cad182b2433eebd4beaa
Author: raingloom <raingloom@riseup.net>
AuthorDate: Wed Feb 15 23:00:05 2023 +0100
gnu: Add ocaml-mirage-profile-unix.
* gnu/packages/ocaml.scm (ocaml-mirage-profile-unix): New variable.
Signed-off-by: Christopher Baines <mail@cbaines.net>
---
gnu/packages/ocaml.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 7a9e8d4f89..e4f7b929a1 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -3846,6 +3846,44 @@ provided check the input and raise on negative or out of
bound input.")
handles the main loop and timers.")
(license license:isc)))
+(define-public ocaml-mirage-profile-unix
+ (package
+ (name "ocaml-mirage-profile-unix")
+ (version "0.9.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/mirage/mirage-profile/")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "11p3ai8g993algds9mbg4xf3is0agqah127r69fb7rm35dryzq95"))))
+ (build-system dune-build-system)
+ (arguments
+ '(#:package "mirage-profile-unix"
+ #:tests? #f ;depends on ocaml-mirage-profile which would form a loop
+ #:phases (modify-phases %standard-phases
+ ;; TODO is there a way to do this with dune build flags?
+ (add-after 'unpack 'disable-xen
+ (lambda _
+ ;; this way it is not detected as a build target
+ (rename-file "xen" "_xen"))))))
+ (propagated-inputs (list ocaml-cstruct ocaml-ocplib-endian ocaml-lwt
+ ocaml-mtime ocaml-ppx-cstruct))
+ (native-inputs (list ocaml-ppx-cstruct))
+ (home-page "https://github.com/mirage/mirage-profile")
+ (synopsis "Collects Ocaml/Lwt profiling information in CTF format")
+ (description
+ "Used to trace execution of OCaml/Lwt programs (such as Mirage
+unikernels) at the level of Lwt threads. The traces can be viewed using
+JavaScript or GTK viewers provided by mirage-trace-viewer or processed by
+tools supporting the Common Trace Format.
+When compiled against a normal version of Lwt, OCaml's cross-module inlining
+will optimise these calls away, meaning there should be no overhead in the
+non-profiling case.")
+ (license license:bsd-2)))
+
(define-public ocaml-ocurl
(package
(name "ocaml-ocurl")
- 17/45: gnu: Add ocaml-mirage-profile., (continued)
- 17/45: gnu: Add ocaml-mirage-profile., guix-commits, 2023/02/17
- 22/45: gnu: Add ocaml-expect-test-helpers-core., guix-commits, 2023/02/17
- 24/45: gnu: Add ocaml-core-unix., guix-commits, 2023/02/17
- 31/45: gnu: Add ocaml-async., guix-commits, 2023/02/17
- 05/45: gnu: Add ocaml-pecu., guix-commits, 2023/02/17
- 32/45: gnu: Add ocaml-shared-memory-ring., guix-commits, 2023/02/17
- 14/45: gnu: Add aliases for ocaml-cstruct and ocaml-lwt subpackages., guix-commits, 2023/02/17
- 28/45: gnu: Add ocaml-textutils., guix-commits, 2023/02/17
- 26/45: gnu: Add ocaml-async-unix., guix-commits, 2023/02/17
- 23/45: gnu: Add ocaml-intrinsics., guix-commits, 2023/02/17
- 16/45: gnu: Add ocaml-mirage-profile-unix.,
guix-commits <=
- 08/45: gnu: Add ocaml-mirage-runtime., guix-commits, 2023/02/17
- 33/45: gnu: Add ocaml-shared-memory-ring-lwt., guix-commits, 2023/02/17
- 38/45: gnu: Add ocaml-parse-argv., guix-commits, 2023/02/17
- 43/45: gnu: Add python-virtualenv-clone., guix-commits, 2023/02/17
- 06/45: gnu: Add ocaml-emile., guix-commits, 2023/02/17
- 09/45: gnu: Add ocaml-functoria., guix-commits, 2023/02/17
- 42/45: gnu: Add chathistorysync., guix-commits, 2023/02/17
- 45/45: gnu: Add clipman., guix-commits, 2023/02/17
- 01/45: gnu: Add ocaml-domain-name., guix-commits, 2023/02/17
- 25/45: gnu: Add ocaml-async-kernel., guix-commits, 2023/02/17