struct ChunkHeader

Defined at line 312 of file ../../third_party/perfetto/include/perfetto/ext/tracing/core/shared_memory_abi.h

There is one Chunk header per chunk (hence PageLayout per page) at the

beginning of each chunk.

Public Members

atomic chunk_id
atomic writer_id
atomic packets
static const uint8_t kFlagsMask

Enumerations

enum Flags : uint8_t
Name Value Comments
kFirstPacketContinuesFromPrevChunk 1 << 0

If set, the first TracePacket in the chunk is partial and continues
from |chunk_id| - 1 (within the same |writer_id|).

kLastPacketContinuesOnNextChunk 1 << 1

If set, the last TracePacket in the chunk is partial and continues on
|chunk_id| + 1 (within the same |writer_id|).

kChunkNeedsPatching 1 << 2

If set, the last (fragmented) TracePacket in the chunk has holes (even
if the chunk is marked as kChunkComplete) that need to be patched
out-of-band before the chunk can be read.

Defined at line 314 of file ../../third_party/perfetto/include/perfetto/ext/tracing/core/shared_memory_abi.h

Records