[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#60673] [PATCH 16/39] gnu: Add ocaml-mirage-profile-unix.
From: |
Csepp |
Subject: |
[bug#60673] [PATCH 16/39] gnu: Add ocaml-mirage-profile-unix. |
Date: |
Mon, 9 Jan 2023 01:35:06 +0100 |
From: raingloom <raingloom@riseup.net>
* gnu/packages/ocaml.scm (ocaml-mirage-profile-unix): New variable.
---
gnu/packages/ocaml.scm | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index 72cb000fd9..62fb00dd37 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -3853,6 +3853,43 @@ (define-public ocaml-mirage-unix
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 url-fetch)
+ (uri
+
"https://github.com/mirage/mirage-profile/releases/download/v0.9.1/mirage-profile-v0.9.1.tbz")
+ (sha256
+ (base32
+ "0lh3591ad4v7nxpd410b75idmgdq668mqdilvkg4avrwqw1wzdib"))))
+ (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")
--
2.38.1
- [bug#60673] [PATCH 21/39] gnu: Add ocaml-sexp-pretty., (continued)
- [bug#60673] [PATCH 21/39] gnu: Add ocaml-sexp-pretty., Csepp, 2023/01/08
- [bug#60673] [PATCH 28/39] gnu: Add ocaml-textutils., Csepp, 2023/01/08
- [bug#60673] [PATCH 25/39] gnu: Add ocaml-async-kernel., Csepp, 2023/01/08
- [bug#60673] [PATCH 39/39] gnu: Add ocaml-mirage-bootvar-unix., Csepp, 2023/01/08
- [bug#60673] [PATCH 23/39] gnu: Add ocaml-intrinsics., Csepp, 2023/01/08
- [bug#60673] [PATCH 19/39] gnu: Add ocaml-ptime., Csepp, 2023/01/08
- [bug#60673] [PATCH 24/39] gnu: Add ocaml-core-unix., Csepp, 2023/01/08
- [bug#60673] [PATCH 31/39] gnu: Add ocaml-async., Csepp, 2023/01/08
- [bug#60673] [PATCH 35/39] gnu: Add ocaml-io-page., Csepp, 2023/01/08
- [bug#60673] [PATCH 15/39] gnu: Add ocaml-ppx-cstruct., Csepp, 2023/01/08
- [bug#60673] [PATCH 16/39] gnu: Add ocaml-mirage-profile-unix.,
Csepp <=
- [bug#60673] [PATCH 20/39] gnu: Add ocaml-mirage-logs., Csepp, 2023/01/08
- [bug#60673] [PATCH 22/39] gnu: Add ocaml-expect-test-helpers-core., Csepp, 2023/01/08
- [bug#60673] [PATCH 32/39] gnu: Add ocaml-shared-memory-ring., Csepp, 2023/01/08
- [bug#60673] [PATCH 34/39] gnu: Add ocaml-xenstore., Csepp, 2023/01/08
- [bug#60673] [PATCH 36/39] gnu: Add ocaml-bheap., Csepp, 2023/01/08
- [bug#60673] [PATCH 29/39] gnu: Add ocaml-protocol-version-header., Csepp, 2023/01/08
- [bug#60673] [PATCH 18/39] gnu: Add ocaml-mirage-clock., Csepp, 2023/01/08
- [bug#60673] [PATCH 26/39] gnu: Add ocaml-async-unix., Csepp, 2023/01/08
- [bug#60673] [PATCH 30/39] gnu: Add ocaml-async-rpc-kernel., Csepp, 2023/01/08
- [bug#60673] [PATCH 27/39] gnu: Add ocaml-textutils-kernel., Csepp, 2023/01/08