Home
last modified time | relevance | path

Searched refs:TraceBuffer (Results 1 – 18 of 18) sorted by relevance

/external/perfetto/src/tracing/core/
Dtrace_buffer.cc61 constexpr size_t TraceBuffer::ChunkRecord::kMaxSize;
62 constexpr size_t TraceBuffer::InlineChunkHeaderSize = sizeof(ChunkRecord);
65 std::unique_ptr<TraceBuffer> TraceBuffer::Create(size_t size_in_bytes, in Create()
67 std::unique_ptr<TraceBuffer> trace_buffer(new TraceBuffer(pol)); in Create()
73 TraceBuffer::TraceBuffer(OverwritePolicy pol) : overwrite_policy_(pol) { in TraceBuffer() function in perfetto::TraceBuffer
80 TraceBuffer::~TraceBuffer() = default;
82 bool TraceBuffer::Initialize(size_t size) { in Initialize()
106 void TraceBuffer::CopyChunkUntrusted(ProducerID producer_id_trusted, in CopyChunkUntrusted()
314 ssize_t TraceBuffer::DeleteNextChunksFor(size_t bytes_to_clear) { in DeleteNextChunksFor()
395 void TraceBuffer::AddPaddingRecord(size_t size) { in AddPaddingRecord()
[all …]
Dtrace_buffer.h140 class TraceBuffer {
164 static std::unique_ptr<TraceBuffer> Create(size_t size_in_bytes,
167 ~TraceBuffer();
491 explicit TraceBuffer(OverwritePolicy);
492 TraceBuffer(const TraceBuffer&) = delete;
493 TraceBuffer& operator=(const TraceBuffer&) = delete;
Dtrace_buffer_unittest.cc42 using SequenceIterator = TraceBuffer::SequenceIterator;
43 using ChunkMetaKey = TraceBuffer::ChunkMeta::Key;
44 using ChunkRecord = TraceBuffer::ChunkRecord;
59 TraceBuffer::OverwritePolicy policy = TraceBuffer::kOverwrite) { in ResetBuffer()
60 trace_buffer_ = TraceBuffer::Create(size_, policy); in ResetBuffer()
67 std::vector<TraceBuffer::Patch> patches, in TryPatchChunkContents()
74 TraceBuffer::PacketSequenceProperties* sequence_properties = nullptr, in ReadPacket()
78 TraceBuffer::PacketSequenceProperties ignored_sequence_properties{}; in ReadPacket()
123 TraceBuffer::ChunkMeta::Key key(p, w, 0); in GetReadIterForSequence()
140 TraceBuffer* trace_buffer() { return trace_buffer_.get(); } in trace_buffer()
[all …]
Dstartup_trace_writer_unittest.cc74 auto buffer = TraceBuffer::Create(abi->size()); in VerifyPackets()
121 TraceBuffer::PacketSequenceProperties sequence_properties{}; in VerifyPackets()
Dtracing_service_impl.h53 class TraceBuffer; variable
523 TraceBuffer* GetBufferByID(BufferID);
542 std::map<BufferID, std::unique_ptr<TraceBuffer>> buffers_;
Dtracing_service_impl.cc444 TraceBuffer::OverwritePolicy policy = in EnableTracing()
446 ? TraceBuffer::kDiscard in EnableTracing()
447 : TraceBuffer::kOverwrite; in EnableTracing()
449 global_id, TraceBuffer::Create(buf_size_bytes, policy)); in EnableTracing()
451 std::unique_ptr<TraceBuffer>& trace_buffer = it_and_inserted.first->second; in EnableTracing()
1480 TraceBuffer& tbuf = *tbuf_iter->second; in ReadBuffers()
1484 TraceBuffer::PacketSequenceProperties sequence_properties{}; in ReadBuffers()
1889 TraceBuffer* buf = GetBufferByID(buffer_id); in CopyProducerPageIntoLogBuffer()
1939 TraceBuffer* buf = in ApplyChunkPatches()
1962 std::array<TraceBuffer::Patch, 1024> patches; // Uninitialized. in ApplyChunkPatches()
[all …]
/external/v8/include/libplatform/
Dv8-tracing.h148 class V8_PLATFORM_EXPORT TraceBuffer {
150 TraceBuffer() {} in TraceBuffer() function
151 virtual ~TraceBuffer() {} in ~TraceBuffer()
159 static TraceBuffer* CreateTraceBufferRingBuffer(size_t max_chunks,
164 TraceBuffer(const TraceBuffer&) = delete;
165 void operator=(const TraceBuffer&) = delete;
241 void Initialize(TraceBuffer* trace_buffer); in V8_PLATFORM_NON_EXPORTED_BASE()
280 std::unique_ptr<TraceBuffer> trace_buffer_; in V8_PLATFORM_NON_EXPORTED_BASE()
/external/perfetto/src/tracing/test/
Dfake_packet.h31 class TraceBuffer; variable
54 FakeChunk(TraceBuffer* t, ProducerID p, WriterID w, ChunkID c);
79 TraceBuffer* trace_buffer_;
Dfake_packet.cc106 FakeChunk::FakeChunk(TraceBuffer* t, ProducerID p, WriterID w, ChunkID c) in FakeChunk()
147 data.size() + TraceBuffer::InlineChunkHeaderSize); in PadTo()
149 chunk_size - (data.size() + TraceBuffer::InlineChunkHeaderSize); in PadTo()
159 return data.size() + TraceBuffer::InlineChunkHeaderSize; in CopyIntoTraceBuffer()
/external/perfetto/include/perfetto/public/
Dconsumer_api.h132 struct TraceBuffer { struct
146 TraceBuffer ReadTrace(Handle); argument
/external/perfetto/src/tracing/api_impl/
Dconsumer_api.cc284 TraceBuffer ReadTrace(Handle);
366 TraceBuffer TracingController::ReadTrace(Handle handle) { in ReadTrace()
367 TraceBuffer buf{}; in ReadTrace()
419 PERFETTO_EXPORTED_API TraceBuffer ReadTrace(Handle handle) { in ReadTrace()
Dconsumer_api_test.cc50 void DumpTrace(TraceBuffer buf) { in DumpTrace()
/external/v8/src/libplatform/tracing/
Dtrace-buffer.cc102 TraceBuffer* TraceBuffer::CreateTraceBufferRingBuffer( in CreateTraceBufferRingBuffer()
Dtrace-buffer.h18 class TraceBufferRingBuffer : public TraceBuffer {
Dtracing-controller.cc60 void TracingController::Initialize(TraceBuffer* trace_buffer) { in Initialize()
/external/perfetto/protos/perfetto/common/
Dtrace_stats.proto26 // From TraceBuffer::Stats.
115 // Stats for the TraceBuffer(s) of the current trace session.
/external/v8/src/
Dd8.cc3332 platform::tracing::TraceBuffer* trace_buffer = in Main()
3333 platform::tracing::TraceBuffer::CreateTraceBufferRingBuffer( in Main()
3334 platform::tracing::TraceBuffer::kRingBufferChunks, in Main()
/external/perfetto/protos/perfetto/trace/
Dperfetto_trace.proto188 // From TraceBuffer::Stats.
277 // Stats for the TraceBuffer(s) of the current trace session.