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.tval max_time : Core.Time_ns.tval write_new_single : Probe_id.t ‑> string ‑> Probe_type.t ‑> unitThese write into the header chunk
val write_new_group : Probe_id.t ‑> string ‑> Probe_type.t ‑> unitval write_new_group_point : group_id:Probe_id.t ‑> id:Probe_id.t ‑> string ‑> Probe_id.t array ‑> unitval write_probe_at : Probe_id.t ‑> Core.Time_ns.t ‑> int ‑> unitval write_group_reset : Probe_id.t ‑> Core.Time_ns.t ‑> unitval 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 ] ‑> unitChoose 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".