Home
last modified time | relevance | path

Searched refs:TraceBufferChunk (Results 1 – 3 of 3) sorted by relevance

/external/chromium_org/base/debug/
Dtrace_event_impl.cc63 const size_t kTraceBufferChunkSize = TraceBufferChunk::kTraceBufferChunkSize;
133 virtual scoped_ptr<TraceBufferChunk> GetChunk(size_t* index) OVERRIDE { in GetChunk()
145 TraceBufferChunk* chunk = chunks_[*index]; in GetChunk()
150 chunk = new TraceBufferChunk(current_chunk_seq_++); in GetChunk()
152 return scoped_ptr<TraceBufferChunk>(chunk); in GetChunk()
156 scoped_ptr<TraceBufferChunk> chunk) OVERRIDE { in ReturnChunk()
184 TraceBufferChunk* chunk = chunks_[handle.chunk_index]; in GetEventByHandle()
190 virtual const TraceBufferChunk* NextChunk() OVERRIDE { in NextChunk()
212 TraceBufferChunk* chunk = chunks_[chunk_index]; in CloneForIteration()
224 virtual const TraceBufferChunk* NextChunk() OVERRIDE { in NextChunk()
[all …]
Dtrace_event_impl.h183 class BASE_EXPORT TraceBufferChunk {
185 TraceBufferChunk(uint32 seq)
207 scoped_ptr<TraceBufferChunk> Clone() const;
222 virtual scoped_ptr<TraceBufferChunk> GetChunk(size_t *index) = 0;
224 scoped_ptr<TraceBufferChunk> chunk) = 0;
232 virtual const TraceBufferChunk* NextChunk() = 0;
727 scoped_ptr<TraceBufferChunk> thread_shared_chunk_;
Dtrace_event_unittest.cc2421 size_t num_chunks = capacity / TraceBufferChunk::kTraceBufferChunkSize; in TEST_F()
2426 scoped_ptr<TraceBufferChunk*[]> chunks(new TraceBufferChunk*[num_chunks]); in TEST_F()
2432 EXPECT_EQ((i + 1) * TraceBufferChunk::kTraceBufferChunkSize, in TEST_F()
2442 buffer->ReturnChunk(i, scoped_ptr<TraceBufferChunk>(chunks[i])); in TEST_F()
2457 scoped_ptr<TraceBufferChunk>(chunks[num_chunks - i - 1])); in TEST_F()
2470 buffer->ReturnChunk(i, scoped_ptr<TraceBufferChunk>(chunks[i])); in TEST_F()
2481 size_t num_chunks = capacity / TraceBufferChunk::kTraceBufferChunkSize; in TEST_F()
2487 scoped_ptr<TraceBufferChunk*[]> chunks(new TraceBufferChunk*[half_chunks]); in TEST_F()
2495 buffer->ReturnChunk(i, scoped_ptr<TraceBufferChunk>(chunks[i])); in TEST_F()
2509 size_t num_chunks = capacity / TraceBufferChunk::kTraceBufferChunkSize; in TEST_F()
[all …]