Function write_traces_binary

Source
pub fn write_traces_binary(writer: &mut impl Write) -> Result<()>
Expand description

Writes the current thread’s array of traces in a binary format. This is, in order:

tag: u64 start_rdtsc: u64 stop_rdtsc: u64

There are no delimiters between each field or between traces. Assumes little-endian since this library only works for x86. Unlike print_csv, the difference between stop and start is not calculated. Writes the entire array, even zeroed / unused portions.

This is suitable for import to Clickhouse via format RowBinary https://clickhouse.com/docs/en/interfaces/formats#rowbinary