Lines Matching refs:chunk
48 TraceBufferChunk* chunk = chunks_[*index].release(); in GetChunk() local
50 if (chunk) in GetChunk()
51 chunk->Reset(current_chunk_seq_++); in GetChunk()
53 chunk = new TraceBufferChunk(current_chunk_seq_++); in GetChunk()
55 return std::unique_ptr<TraceBufferChunk>(chunk); in GetChunk()
59 std::unique_ptr<TraceBufferChunk> chunk) override { in ReturnChunk() argument
63 DCHECK(chunk); in ReturnChunk()
66 chunks_[index] = std::move(chunk); in ReturnChunk()
85 TraceBufferChunk* chunk = chunks_[handle.chunk_index].get(); in GetEventByHandle() local
86 if (!chunk || chunk->seq() != handle.chunk_seq) in GetEventByHandle()
88 return chunk->GetEventAt(handle.event_index); in GetEventByHandle()
179 std::unique_ptr<TraceBufferChunk> chunk) override { in ReturnChunk() argument
184 chunks_[index] = chunk.release(); in ReturnChunk()
201 TraceBufferChunk* chunk = chunks_[handle.chunk_index]; in GetEventByHandle() local
202 if (!chunk || chunk->seq() != handle.chunk_seq) in GetEventByHandle()
204 return chunk->GetEventAt(handle.event_index); in GetEventByHandle()
210 const TraceBufferChunk* chunk = chunks_[current_iteration_index_++]; in NextChunk() local
211 if (chunk) in NextChunk()
212 return chunk; in NextChunk()
226 TraceBufferChunk* chunk = chunks_[i]; in EstimateTraceMemoryOverhead() local
229 if (chunk) in EstimateTraceMemoryOverhead()
230 chunk->EstimateTraceMemoryOverhead(overhead); in EstimateTraceMemoryOverhead()