The Writer
module contains functions that invoke parts of Header_protocol
and
Short_header
in order to write into the relevant (global variable) buffers
in Buffer
val epoch : Profiler_epoch.t
val max_time : Core.Time_ns.t
val write_new_single : Probe_id.t ‑> string ‑> Probe_type.t ‑> unit
These write into the header chunk
val write_new_group : Probe_id.t ‑> string ‑> Probe_type.t ‑> unit
val write_new_group_point : group_id:Probe_id.t ‑> id:Probe_id.t ‑> string ‑> Probe_id.t array ‑> unit
val write_probe_at : Probe_id.t ‑> Core.Time_ns.t ‑> int ‑> unit
val write_group_reset : Probe_id.t ‑> Core.Time_ns.t ‑> unit
val set_at_exit_handler : [ `Write_file of string | `Function of (Core.read, Core.Iobuf.no_seek) Core.Iobuf.t ‑> (Core.read, Core.Iobuf.no_seek) Core.Iobuf.t list ‑> unit | `Disable ] ‑> unit
Choose what to do with the in memory stats data at exit.
The handler function is passed the header chunk and the list of data chunks.
Defaults to `Write_file "stats.dat"
.