[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#60673] [PATCH v2 16/39] gnu: Add ocaml-mirage-profile-unix.
From: |
Csepp |
Subject: |
[bug#60673] [PATCH v2 16/39] gnu: Add ocaml-mirage-profile-unix. |
Date: |
Wed, 15 Feb 2023 23:00:05 +0100 |
From: raingloom <raingloom@riseup.net>
* gnu/packages/ocaml.scm (ocaml-mirage-profile-unix): New variable.
---
gnu/packages/ocaml.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index dfd194faaf..665bf943da 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -3848,6 +3848,44 @@ (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 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")
--
2.39.1
- [bug#60673] [PATCH v2 05/39] gnu: Add ocaml-pecu., (continued)
- [bug#60673] [PATCH v2 05/39] gnu: Add ocaml-pecu., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 06/39] gnu: Add ocaml-emile., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 07/39] gnu: Add ocaml-functoria-runtime, Csepp, 2023/02/15
- [bug#60673] [PATCH v2 11/39] gnu: Add ocaml-duration., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 13/39] gnu: Add ocaml-mirage-time., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 09/39] gnu: Add ocaml-functoria., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 14/39] gnu: Add aliases for ocaml-cstruct and ocaml-lwt subpackages., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 15/39] gnu: Add ocaml-ppx-cstruct., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 17/39] gnu: Add ocaml-mirage-profile., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 12/39] gnu: Add ocaml-mirage-unix., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 16/39] gnu: Add ocaml-mirage-profile-unix.,
Csepp <=
- [bug#60673] [PATCH v2 08/39] gnu: Add ocaml-mirage-runtime., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 19/39] gnu: Add ocaml-ptime., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 20/39] gnu: Add ocaml-mirage-logs., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 31/39] gnu: Add ocaml-async., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 23/39] gnu: Add ocaml-intrinsics., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 33/39] gnu: Add ocaml-shared-memory-ring-lwt., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 32/39] gnu: Add ocaml-shared-memory-ring., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 35/39] gnu: Add ocaml-io-page., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 26/39] gnu: Add ocaml-async-unix., Csepp, 2023/02/15
- [bug#60673] [PATCH v2 25/39] gnu: Add ocaml-async-kernel., Csepp, 2023/02/15