Home
last modified time | relevance | path

Searched refs:TracePacket (Results 1 – 25 of 65) sorted by relevance

123

/external/perfetto/src/tracing/core/
Dtrace_packet.cc25 TracePacket::TracePacket() = default;
26 TracePacket::~TracePacket() = default;
28 TracePacket::TracePacket(TracePacket&& other) noexcept { in TracePacket() function in perfetto::TracePacket
32 TracePacket& TracePacket::operator=(TracePacket&& other) { in operator =()
40 void TracePacket::AddSlice(Slice slice) { in AddSlice()
45 void TracePacket::AddSlice(const void* start, size_t size) { in AddSlice()
50 std::tuple<char*, size_t> TracePacket::GetProtoPreamble() { in GetProtoPreamble()
66 std::unique_ptr<TracePacket::ZeroCopyInputStream>
67 TracePacket::CreateSlicedInputStream() const { in CreateSlicedInputStream()
Dtrace_packet_unittest.cc30 static_assert(TracePacket::kPacketFieldNumber ==
34 static_assert(protos::TracePacket::kTrustedUidFieldNumber ==
38 static_assert(protos::TracePacket::kTraceConfigFieldNumber ==
42 static_assert(protos::TracePacket::kTraceStatsFieldNumber ==
46 static_assert(protos::TracePacket::kClockSnapshotFieldNumber ==
51 protos::TracePacket proto; in TEST()
54 TracePacket tp; in TEST()
62 protos::TracePacket decoded_packet; in TEST()
68 protos::TracePacket proto; in TEST()
72 TracePacket tp; in TEST()
[all …]
Dpacket_stream_validator_unittest.cc35 protos::TracePacket proto; in TEST()
45 protos::TracePacket proto; in TEST()
62 protos::TracePacket proto; in TEST()
72 protos::TracePacket proto; in TEST()
82 protos::TracePacket proto; in TEST()
92 protos::TracePacket proto; in TEST()
110 protos::TracePacket proto; in TEST()
130 protos::TracePacket proto; in TEST()
152 protos::TracePacket proto; in TEST()
164 protos::TracePacket proto; in TEST()
Dtrace_writer_for_testing.cc34 cur_packet_.reset(new protos::pbzero::TracePacket()); in TraceWriterForTesting()
48 std::vector<protos::TracePacket> TraceWriterForTesting::GetAllTracePackets() { in GetAllTracePackets()
56 std::vector<protos::TracePacket> ret; in GetAllTracePackets()
63 std::unique_ptr<protos::TracePacket> TraceWriterForTesting::ParseProto() { in ParseProto()
69 std::unique_ptr<protos::TracePacket>(new protos::TracePacket(trace[0])); in ParseProto()
Dtracing_service_impl_unittest.cc64 const std::vector<protos::TracePacket>& packets, in HasTriggerModeInternal()
69 &protos::TracePacket::trace_config, in HasTriggerModeInternal()
735 &protos::TracePacket::trace_config, in TEST_F()
744 &protos::TracePacket::trigger, in TEST_F()
749 Property(&protos::TracePacket::trusted_packet_sequence_id, in TEST_F()
812 &protos::TracePacket::trace_config, in TEST_F()
822 &protos::TracePacket::trigger, in TEST_F()
827 Property(&protos::TracePacket::trusted_packet_sequence_id, in TEST_F()
866 AllOf(Property(&protos::TracePacket::trigger, in TEST_F()
870 Property(&protos::TracePacket::trusted_packet_sequence_id, in TEST_F()
[all …]
Dtrace_writer_for_testing.h41 std::vector<protos::TracePacket> GetAllTracePackets();
43 std::unique_ptr<protos::TracePacket> ParseProto();
57 std::unique_ptr<protos::pbzero::TracePacket> cur_packet_;
Dtracing_service_impl.h55 class TracePacket; variable
462 std::vector<TracePacket> initial_clock_snapshot_;
506 void SnapshotSyncMarker(std::vector<TracePacket>*);
507 void SnapshotClocks(std::vector<TracePacket>*, bool set_root_timestamp);
508 void SnapshotStats(TracingSession*, std::vector<TracePacket>*);
510 void MaybeEmitTraceConfig(TracingSession*, std::vector<TracePacket>*);
511 void MaybeEmitSystemInfo(TracingSession*, std::vector<TracePacket>*);
512 void MaybeEmitReceivedTriggers(TracingSession*, std::vector<TracePacket>*);
/external/perfetto/include/perfetto/tracing/core/
Dtrace_packet.h33 class TracePacket; // From protos/trace_packet.pb.h. variable
44 class PERFETTO_EXPORT TracePacket {
52 TracePacket();
53 ~TracePacket();
54 TracePacket(TracePacket&&) noexcept;
55 TracePacket& operator=(TracePacket&&);
68 template <typename TracePacketType = protos::TracePacket>
91 TracePacket(const TracePacket&) = delete;
92 TracePacket& operator=(const TracePacket&) = delete;
Dconsumer.h29 class TracePacket; variable
60 virtual void OnTraceData(std::vector<TracePacket>, bool has_more) = 0;
Dtrace_writer.h30 class TracePacket; variable
51 protozero::MessageHandle<protos::pbzero::TracePacket>;
/external/perfetto/src/perfetto_cmd/
Dpacket_writer.cc69 bool WritePackets(const std::vector<TracePacket>& packets) override;
79 bool WritePackets(const std::vector<TracePacket>& packets) override;
82 bool WritePacket(const TracePacket& packet);
110 bool FilePacketWriter::WritePackets(const std::vector<TracePacket>& packets) { in WritePackets()
111 for (const TracePacket& packet : packets) { in WritePackets()
138 bool ZipPacketWriter::WritePackets(const std::vector<TracePacket>& packets) { in WritePackets()
139 for (const TracePacket& packet : packets) { in WritePackets()
146 bool ZipPacketWriter::WritePacket(const TracePacket& packet) { in WritePacket()
209 std::vector<TracePacket> out_packets(1); in FinalizeCompressedPacket()
210 TracePacket& out_packet = out_packets[0]; in FinalizeCompressedPacket()
Dpacket_writer_unittest.cc42 using TracePacketZero = protos::pbzero::TracePacket;
45 TracePacket CreateTracePacket(F fill_function) { in CreateTracePacket()
52 perfetto::TracePacket packet; in CreateTracePacket()
90 std::vector<perfetto::TracePacket> packets; in TEST()
118 std::vector<perfetto::TracePacket> packets; in TEST()
163 writer->WritePackets(std::vector<TracePacket>()); in TEST()
164 writer->WritePackets(std::vector<TracePacket>()); in TEST()
165 writer->WritePackets(std::vector<TracePacket>()); in TEST()
181 std::vector<perfetto::TracePacket> packets; in TEST()
193 for (const TracePacket& packet : packets) in TEST()
[all …]
Dpacket_writer.h26 class TracePacket; variable
32 virtual bool WritePackets(const std::vector<TracePacket>& packets) = 0;
/external/perfetto/src/trace_processor/
Dproto_trace_tokenizer.h66 const protos::pbzero::TracePacket::Decoder& packet_decoder);
68 const protos::pbzero::TracePacket::Decoder& packet_decoder);
70 const protos::pbzero::TracePacket::Decoder& packet_decoder,
73 const protos::pbzero::TracePacket::Decoder& packet_decoder);
75 const protos::pbzero::TracePacket::Decoder& packet_decoder,
Dproto_trace_tokenizer.cc95 protos::pbzero::TracePacket::kTrackEventFieldNumber))) { in GuessProtoTraceType()
193 protos::pbzero::TracePacket::Decoder decoder(packet.data(), packet.length()); in ParsePacket()
236 const protos::pbzero::TracePacket::Decoder& packet_decoder) { in HandleIncrementalStateCleared()
249 const protos::pbzero::TracePacket::Decoder& packet_decoder) { in HandlePreviousPacketDropped()
261 const protos::pbzero::TracePacket::Decoder& packet_decoder, in ParseInternedData()
302 const protos::pbzero::TracePacket::Decoder& packet_decoder) { in ParseThreadDescriptorPacket()
336 const protos::pbzero::TracePacket::Decoder& packet_decoder, in ParseTrackEventPacket()
/external/perfetto/src/tracing/test/
Dmock_consumer.cc100 std::vector<protos::TracePacket> MockConsumer::ReadBuffers() { in ReadBuffers()
101 std::vector<protos::TracePacket> decoded_packets; in ReadBuffers()
108 std::vector<TracePacket>* packets, bool has_more) { in ReadBuffers()
109 for (TracePacket& packet : *packets) { in ReadBuffers()
111 protos::TracePacket* decoded_packet = &decoded_packets.back(); in ReadBuffers()
Dmock_consumer.h57 std::vector<protos::TracePacket> ReadBuffers();
72 void(std::vector<TracePacket>* /*packets*/, bool /*has_more*/));
80 void OnTraceData(std::vector<TracePacket> packets, bool has_more) override { in OnTraceData()
Dtracing_integration_test.cc83 MOCK_METHOD2(OnTracePackets, void(std::vector<TracePacket>*, bool));
90 void OnTraceData(std::vector<TracePacket> packets, bool has_more) { in OnTraceData()
95 void CheckTraceStats(const protos::TracePacket& packet) { in CheckTraceStats()
303 std::vector<TracePacket>* packets, bool has_more) { in TEST_F()
311 protos::TracePacket packet; in TEST_F()
427 const protos::TracePacket& packet = tmp_trace.packet(i); in TEST_F()
517 std::vector<TracePacket>* packets, bool has_more) { in TEST_F()
519 protos::TracePacket packet; in TEST_F()
/external/perfetto/docs/
Dtrace-format.md8 A Perfetto trace is guaranteed to be a a linear sequence of `TracePacket(s)`
12 content of TracePacket, modulo the few fields defined in
25 The tracing service guarantees that all `TracePacket(s)` written by a given
30 However, `TracePacket(s)` written by different `TraceWriter` (hence even
/external/perfetto/src/traced/probes/ps/
Dprocess_stats_data_source_unittest.cc78 std::vector<protos::TracePacket> trace = writer_raw_->GetAllTracePackets(); in TEST_F()
127 std::vector<protos::TracePacket> trace = writer_raw_->GetAllTracePackets(); in TEST_F()
164 std::vector<protos::TracePacket> trace = writer_raw_->GetAllTracePackets(); in TEST_F()
187 std::vector<protos::TracePacket> trace = writer_raw_->GetAllTracePackets(); in TEST_F()
204 std::vector<protos::TracePacket> trace = writer_raw_->GetAllTracePackets(); in TEST_F()
260 std::vector<protos::TracePacket> trace = writer_raw_->GetAllTracePackets(); in TEST_F()
336 std::vector<protos::TracePacket> trace = writer_raw_->GetAllTracePackets(); in TEST_F()
403 std::vector<protos::TracePacket> trace = writer_raw_->GetAllTracePackets(); in TEST_F()
/external/perfetto/test/
Dtest_helper.h44 void OnTraceData(std::vector<TracePacket> packets, bool has_more) override;
84 const std::vector<protos::TracePacket>& trace() { return trace_; } in trace()
98 std::vector<protos::TracePacket> trace_;
/external/perfetto/protos/perfetto/trace/
Dtrace.proto25 repeated TracePacket packet = 1;
29 // (streaming) where TracePacket are directly streamed without being wrapped
31 // logic should be based on TracePacket(s).
Dtrace_packet.proto46 // TracePacket(s).
50 message TracePacket { message
90 // Each compressed_packets TracePacket (including the two field ids and
120 // usually emit new interned data in the same TracePacket that first refers to
131 // When set to true, this TracePacket and subsequent TracePackets on the same
133 // TracePacket. For example, previously emitted interned data will be
/external/perfetto/tools/trace_to_text/
Dutils.h33 class TracePacket; variable
52 const std::function<void(const protos::TracePacket&)>&);
/external/perfetto/test/cts/
Dheapprofd_test_cts.cc112 std::vector<protos::TracePacket> ProfileRuntime(std::string app_name) { in ProfileRuntime()
151 std::vector<protos::TracePacket> ProfileStartup(std::string app_name) { in ProfileStartup()
193 std::vector<protos::TracePacket> packets) { in AssertExpectedAllocationsPresent()
218 void AssertNoProfileContents(std::vector<protos::TracePacket> packets) { in AssertNoProfileContents()

123