Home
last modified time | relevance | path

Searched refs:cur_packet_ (Results 1 – 11 of 11) sorted by relevance

/external/perfetto/src/tracing/core/
Dtrace_writer_impl.cc52 cur_packet_.reset(new protos::pbzero::TracePacket()); in TraceWriterImpl()
53 cur_packet_->Finalize(); // To avoid the DCHECK in NewTracePacket(). in TraceWriterImpl()
58 cur_packet_->Finalize(); in ~TraceWriterImpl()
66 PERFETTO_CHECK(cur_packet_->is_finalized()); in Flush()
83 PERFETTO_DCHECK(cur_packet_->is_finalized()); in NewTracePacket()
110 cur_packet_->Reset(&protobuf_stream_writer_); in NewTracePacket()
113 cur_packet_->set_size_field(header); in NewTracePacket()
117 TracePacketHandle handle(cur_packet_.get()); in NewTracePacket()
140 cur_packet_->inc_size_already_written(partial_size); in GetNewBuffer()
142 WriteRedundantVarInt(partial_size, cur_packet_->size_field()); in GetNewBuffer()
[all …]
Dtrace_writer_for_testing.cc34 cur_packet_.reset(new protos::pbzero::TracePacket()); in TraceWriterForTesting()
35 cur_packet_->Finalize(); // To avoid the DCHECK in NewTracePacket(). in TraceWriterForTesting()
42 PERFETTO_CHECK(cur_packet_->is_finalized()); in Flush()
49 PERFETTO_CHECK(cur_packet_->is_finalized()); in GetAllTracePackets()
64 PERFETTO_CHECK(cur_packet_->is_finalized()); in ParseProto()
77 PERFETTO_DCHECK(cur_packet_->is_finalized()); in NewTracePacket()
78 cur_packet_->Reset(&stream_); in NewTracePacket()
91 auto packet = TraceWriter::TracePacketHandle(cur_packet_.get()); in NewTracePacket()
Dnull_trace_writer.cc30 cur_packet_.reset(new protos::pbzero::TracePacket()); in NullTraceWriter()
31 cur_packet_->Finalize(); // To avoid the DCHECK in NewTracePacket(). in NullTraceWriter()
38 PERFETTO_CHECK(cur_packet_->is_finalized()); in Flush()
47 PERFETTO_DCHECK(cur_packet_->is_finalized()); in NewTracePacket()
48 cur_packet_->Reset(&stream_); in NewTracePacket()
49 return TraceWriter::TracePacketHandle(cur_packet_.get()); in NewTracePacket()
Dstartup_trace_writer.cc162 if (cur_packet_) { in BindToArbiter()
163 PERFETTO_DCHECK(cur_packet_->is_finalized()); in BindToArbiter()
164 cur_packet_.reset(); in BindToArbiter()
189 PERFETTO_DCHECK(!cur_packet_); in NewTracePacket()
198 PERFETTO_DCHECK(!cur_packet_); in NewTracePacket()
216 if (cur_packet_) { in NewTracePacket()
219 PERFETTO_DCHECK(cur_packet_->is_finalized()); in NewTracePacket()
221 cur_packet_.reset(new protos::pbzero::TracePacket()); in NewTracePacket()
223 cur_packet_->Reset(memory_stream_writer_.get()); in NewTracePacket()
224 TraceWriter::TracePacketHandle handle(cur_packet_.get()); in NewTracePacket()
[all …]
Dnull_trace_writer.h50 std::unique_ptr<protos::pbzero::TracePacket> cur_packet_; variable
Dtrace_writer_for_testing.h57 std::unique_ptr<protos::pbzero::TracePacket> cur_packet_; variable
Dtrace_writer_impl.h82 std::unique_ptr<protos::pbzero::TracePacket> cur_packet_; variable
/external/perfetto/src/traced/probes/ps/
Dprocess_stats_data_source.cc286 if (cur_packet_) in StartNewPacketIfNeeded()
288 cur_packet_ = writer_->NewTracePacket(); in StartNewPacketIfNeeded()
289 cur_packet_->set_timestamp(CacheProcFsScanStartTimestamp()); in StartNewPacketIfNeeded()
292 cur_packet_->set_incremental_state_cleared(true); in StartNewPacketIfNeeded()
300 cur_ps_tree_ = cur_packet_->set_process_tree(); in GetOrCreatePsTree()
309 cur_ps_stats_ = cur_packet_->set_process_stats(); in GetOrCreateStats()
325 PERFETTO_DCHECK(!cur_ps_tree_ || cur_packet_); in FinalizeCurPacket()
326 PERFETTO_DCHECK(!cur_ps_stats_ || cur_packet_); in FinalizeCurPacket()
338 cur_packet_ = TraceWriter::TracePacketHandle{}; in FinalizeCurPacket()
Dprocess_stats_data_source.h114 TraceWriter::TracePacketHandle cur_packet_; variable
/external/perfetto/include/perfetto/tracing/core/
Dstartup_trace_writer.h164 std::unique_ptr<protos::pbzero::TracePacket> cur_packet_; variable
/external/perfetto/src/traced/probes/sys_stats/
Dsys_stats_data_source.h89 TraceWriter::TracePacketHandle cur_packet_; variable