package mirage-profile

  1. Overview
  2. Docs
Collect runtime profiling information in CTF format

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mirage-profile-v0.9.1.tbz
sha256=2bb6cf03c73c6f45dedc34365c9131b8bdda62390b04d26eb76793a6422a0352
sha512=23cc4a2a62f5cc05b48d626bd6c8171a442fd46490da6810b1c507fcd7661c7fcd901d8328cddf687af4144136bf0d34b63f8484e32550077ab63d23e6eaea2b

doc/src/mirage-profile/mProf_trace.ml.html

Source file mProf_trace.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 1 "lib/mProf_trace_without_tracing.ml"
(* Copyright (C) 2014, Thomas Leonard *)

type hiatus_reason =
  | Wait_for_work
  | Suspend
  | Hibernate

let note_hiatus _reason = ()
let note_resume () = ()

let label _label = ()
let named_wait _label = Lwt.wait ()
let named_task _label = Lwt.task ()
let named_condition _label = Lwt_condition.create ()
let named_mvar _label v = Lwt_mvar.create v
let named_mvar_empty _label = Lwt_mvar.create_empty ()
let should_resolve _thread = ()

let note_increase _counter _amount = ()
let note_counter_value _counter _value = ()