Lines Matching defs:chunk
18 // Create new chunk if last chunk is full or there is no chunk.
20 auto& chunk = chunks_[total_chunks_++];
21 if (chunk) {
22 chunk->Reset(current_chunk_seq_++);
24 chunk = std::make_unique<TraceBufferChunk>(current_chunk_seq_++);
27 auto& chunk = chunks_[total_chunks_ - 1];
29 TraceObject* trace_object = chunk->AddTraceEvent(&event_index);
30 *handle = MakeHandle(total_chunks_ - 1, chunk->seq(), event_index);
44 // Either the chunk belongs to the other buffer, or is outside the current
46 // the chunk has already been flushed and is no longer in memory.)
49 auto& chunk = chunks_[chunk_index];
50 if (chunk->seq() != chunk_seq) {
54 return chunk->GetEventAt(event_index);
63 auto& chunk = chunks_[i];
64 for (size_t j = 0; j < chunk->size(); ++j) {
65 TraceObject* trace_event = chunk->GetEventAt(j);