package tracing
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=5621f8fd41d64521cc88295417e48174f525a7e6e4f8a72885ba89056d461a72
doc/tracing.tracing_zero/Tracing_zero/Destinations/index.html
Module Tracing_zero.Destinations
Source
val iobuf_destination :
(Core.read_write, Iobuf.seek) Iobuf.t ->
(module Writer_intf.Destination)
Write to a provided Iobuf.t
, throws an exception if the buffer runs out of space. After the Destination
is closed, sets the window of the Iobuf.t
to the data written.
val raw_iobuf_destination :
(Core.read_write, Iobuf.seek) Iobuf.t ->
(module Writer_intf.Destination)
Write to a provided Iobuf.t
, throws an exception if the buffer runs out of space. Dynamically updates the window of the Iobuf.t
as data is written, and does not set the window to the data writen on closure.
Creates a new buffer, which is reset and reused on every call to next_buf
, effectively dropping all the previously-recorded content, as the name suggests. Useful for performance benchmarking or having trace events be ignored without growing an in-memory log.
len
is the length of the buffer and can be tuned to simulate different cache characteristics in a benchmark or avoid using much memory when ignoring events.
If touch_memory
is true, the memory will be written over to ensure all the memory is paged in, to reduce benchmark variance.
Starts by keeping events in internal memory buffers. After set_destination
is called it will copy any buffered events into the new destination upon the next buffer switch, then provide a buffer directly from the newly set destination.