OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:TraceBufferChunk
(Results
1 - 2
of
2
) sorted by null
/external/libchrome/base/trace_event/
trace_buffer.h
19
//
TraceBufferChunk
is the basic unit of TraceBuffer.
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;
trace_buffer.cc
33
scoped_ptr<
TraceBufferChunk
> GetChunk(size_t* index) override {
45
TraceBufferChunk
* chunk = chunks_[*index].release();
50
chunk = new
TraceBufferChunk
(current_chunk_seq_++);
52
return scoped_ptr<
TraceBufferChunk
>(chunk);
55
void ReturnChunk(size_t index, scoped_ptr<
TraceBufferChunk
> chunk) override {
71
return chunks_.size() *
TraceBufferChunk
::kTraceBufferChunkSize;
75
return max_chunks_ *
TraceBufferChunk
::kTraceBufferChunkSize;
81
TraceBufferChunk
* chunk = chunks_[handle.chunk_index].get();
87
const
TraceBufferChunk
* NextChunk() override {
109
TraceBufferChunk
* chunk = chunks_[chunk_index].get()
[
all
...]
Completed in 853 milliseconds