opam-version: "2.0"
maintainer: "Thomas Leonard <talex5@gmail.com>"
authors: "Thomas Leonard <talex5@gmail.com>"
homepage: "https://github.com/mirage/mirage-profile"
dev-repo: "git+https://github.com/mirage/mirage-profile.git"
bug-reports: "https://github.com/mirage/mirage-profile/issues"
doc: "https://mirage.github.io/mirage-profile"
license: "BSD-2-clause"

build: [
  [ "jbuilder" "subst" "-p" name] {pinned}
  [ "jbuilder" "build" "-p" name "-j" jobs ]
]

depends: [
  "ocaml" {>= "4.02.0"}
  "ocamlfind" {build}
  "jbuilder" {>= "1.0+beta9"}
  "cstruct" {>= "3.0.0" & < "3.2.0"}
  "ppx_cstruct"
  "ocplib-endian"
  "lwt"
  "topkg" {build}
]
synopsis: "Collect profiling information"
description: """
This library can be used to trace execution of OCaml/Lwt programs (such as
MirageOS 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 (CTF)."""
url {
  src:
    "https://github.com/mirage/mirage-profile/releases/download/0.8.0/mirage-profile-0.8.0.tbz"
  checksum: "md5=8b851d851522afa9802be3558230c2be"
}
