package mirage
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
The MirageOS library operating system
Install
dune-project
Dependency
Authors
Maintainers
Sources
mirage-4.0.0.tbz
sha256=f804161872de6cf20699364f09d03370ed06aafffb12f1d586190832c73a194d
sha512=75c1c1cac4c6f862c0055381c7ced123785193234b40da8a8e238cb289cba1a4494378587c4edf2ed872aee7fbfc756f84087941c1037ac19cbd1733ff6cca6a
doc/src/mirage.impl/mirage_impl_tracing.ml.html
Source file mirage_impl_tracing.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48open Functoria open Mirage_impl_misc module Key = Mirage_key type tracing = job let tracing = job let mprof_trace ~size () = let unix_trace_file = "trace.ctf" in let key = Key.tracing_size size in let keys = [ Key.v key ] in let packages_v = Key.match_ Key.(value target) @@ function | #Mirage_key.mode_xen -> [ package ~max:"1.0.0" "mirage-profile"; package ~max:"1.0.0" ~min:"0.9.0" "mirage-profile-xen"; ] | #Mirage_key.mode_solo5 -> [] | #Mirage_key.mode_unix -> [ package ~max:"1.0.0" "mirage-profile"; package ~max:"1.0.0" "mirage-profile-unix"; ] in let connect i _ _ = match get_target i with | #Mirage_key.mode_solo5 -> failwith "tracing is not currently implemented for solo5 targets" | #Mirage_key.mode_unix -> Fmt.str "Lwt.return ())@.let () = (@ @[<v 2> let buffer = \ MProf_unix.mmap_buffer ~size:%a %S in@ let trace_config = \ MProf.Trace.Control.make buffer MProf_unix.timestamper in@ \ MProf.Trace.Control.start trace_config@]" Key.serialize_call (Key.v key) unix_trace_file | #Mirage_key.mode_xen -> Fmt.str "Lwt.return ())@.let () = (@ @[<v 2> let trace_pages = \ MProf_xen.make_shared_buffer ~size:%a in@ let buffer = trace_pages \ |> Io_page.to_cstruct |> Cstruct.to_bigarray in@ let trace_config = \ MProf.Trace.Control.make buffer MProf_xen.timestamper in@ \ MProf.Trace.Control.start trace_config;@ MProf_xen.share_with \ ~domid:0 trace_pages@ |> Xen_os.Main.run@]" Key.serialize_call (Key.v key) in impl ~keys ~packages_v ~connect "MProf" job
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>