Searched refs:TraceBufferChunk (Results 1 – 5 of 5) sorted by relevance
33 scoped_ptr<TraceBufferChunk> GetChunk(size_t* index) override { in GetChunk()45 TraceBufferChunk* chunk = chunks_[*index].release(); in GetChunk()50 chunk = new TraceBufferChunk(current_chunk_seq_++); in GetChunk()52 return scoped_ptr<TraceBufferChunk>(chunk); in GetChunk()55 void ReturnChunk(size_t index, scoped_ptr<TraceBufferChunk> chunk) override { in ReturnChunk()71 return chunks_.size() * TraceBufferChunk::kTraceBufferChunkSize; in Size()75 return max_chunks_ * TraceBufferChunk::kTraceBufferChunkSize; in Capacity()81 TraceBufferChunk* chunk = chunks_[handle.chunk_index].get(); in GetEventByHandle()87 const TraceBufferChunk* NextChunk() override { in NextChunk()109 TraceBufferChunk* chunk = chunks_[chunk_index].get(); in CloneForIteration()[all …]
20 class BASE_EXPORT TraceBufferChunk {22 explicit TraceBufferChunk(uint32_t seq);23 ~TraceBufferChunk();42 scoped_ptr<TraceBufferChunk> Clone() const;64 virtual scoped_ptr<TraceBufferChunk> GetChunk(size_t* index) = 0;66 scoped_ptr<TraceBufferChunk> chunk) = 0;74 virtual const TraceBufferChunk* NextChunk() = 0;
2631 size_t num_chunks = capacity / TraceBufferChunk::kTraceBufferChunkSize; in TEST_F()2636 scoped_ptr<TraceBufferChunk*[]> chunks(new TraceBufferChunk*[num_chunks]); in TEST_F()2642 EXPECT_EQ((i + 1) * TraceBufferChunk::kTraceBufferChunkSize, in TEST_F()2652 buffer->ReturnChunk(i, scoped_ptr<TraceBufferChunk>(chunks[i])); in TEST_F()2667 scoped_ptr<TraceBufferChunk>(chunks[num_chunks - i - 1])); in TEST_F()2680 buffer->ReturnChunk(i, scoped_ptr<TraceBufferChunk>(chunks[i])); in TEST_F()2691 size_t num_chunks = capacity / TraceBufferChunk::kTraceBufferChunkSize; in TEST_F()2697 scoped_ptr<TraceBufferChunk*[]> chunks(new TraceBufferChunk*[half_chunks]); in TEST_F()2705 buffer->ReturnChunk(i, scoped_ptr<TraceBufferChunk>(chunks[i])); in TEST_F()2719 size_t num_chunks = capacity / TraceBufferChunk::kTraceBufferChunkSize; in TEST_F()[all …]
66 const size_t kTraceBufferChunkSize = TraceBufferChunk::kTraceBufferChunkSize;71 kTraceEventVectorBigBufferChunks <= TraceBufferChunk::kMaxChunkIndex,75 kTraceEventVectorBufferChunks <= TraceBufferChunk::kMaxChunkIndex,172 DCHECK(chunk_index <= TraceBufferChunk::kMaxChunkIndex); in MakeHandle()173 DCHECK(event_index < TraceBufferChunk::kTraceBufferChunkSize); in MakeHandle()242 scoped_ptr<TraceBufferChunk> chunk_;906 while (const TraceBufferChunk* chunk = logged_events->NextChunk()) { in ConvertTraceEventsToTraceFormat()
34 class TraceBufferChunk; variable487 scoped_ptr<TraceBufferChunk> thread_shared_chunk_;