Home
last modified time | relevance | path

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

12

/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.cc31 cur_packet_.reset(new protos::pbzero::TracePacket()); in TraceWriterForTesting()
45 std::unique_ptr<protos::TracePacket> TraceWriterForTesting::ParseProto() { in ParseProto()
48 auto packet = std::unique_ptr<protos::TracePacket>(new protos::TracePacket()); in ParseProto()
Dtrace_writer_for_testing.h40 std::unique_ptr<protos::TracePacket> ParseProto();
53 std::unique_ptr<protos::pbzero::TracePacket> cur_packet_;
Dtrace_buffer.h35 class TracePacket; variable
219 bool ReadNextTracePacket(TracePacket*, uid_t* producer_uid);
432 ReadAheadResult ReadAhead(TracePacket*);
455 bool ReadNextPacketInChunk(ChunkMeta*, TracePacket*);
Dservice_impl.h51 class TracePacket; variable
280 void MaybeSnapshotClocks(TracingSession*, std::vector<TracePacket>*);
281 void MaybeEmitTraceConfig(TracingSession*, std::vector<TracePacket>*);
282 void MaybeSnapshotStats(TracingSession*, std::vector<TracePacket>*);
Dtrace_buffer.cc394 bool TraceBuffer::ReadNextTracePacket(TracePacket* packet, in ReadNextTracePacket()
542 TraceBuffer::ReadAheadResult TraceBuffer::ReadAhead(TracePacket* packet) { in ReadAhead()
611 *packet = TracePacket(); // clear. in ReadAhead()
621 TracePacket* packet) { in ReadNextPacketInChunk()
/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.h28 class TracePacket; variable
57 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/tracing/test/
Dmock_consumer.cc91 std::vector<protos::TracePacket> MockConsumer::ReadBuffers() { in ReadBuffers()
92 std::vector<protos::TracePacket> decoded_packets; in ReadBuffers()
99 std::vector<TracePacket>* packets, bool has_more) { in ReadBuffers()
100 for (TracePacket& packet : *packets) { in ReadBuffers()
102 protos::TracePacket* decoded_packet = &decoded_packets.back(); in ReadBuffers()
Dmock_consumer.h55 std::vector<protos::TracePacket> ReadBuffers();
64 void(std::vector<TracePacket>* /*packets*/, bool /*has_more*/));
68 void OnTraceData(std::vector<TracePacket> packets, bool has_more) override { in OnTraceData()
Dtracing_integration_test.cc76 MOCK_METHOD2(OnTracePackets, void(std::vector<TracePacket>*, bool));
79 void OnTraceData(std::vector<TracePacket> packets, bool has_more) { in OnTraceData()
84 void CheckTraceStats(const protos::TracePacket& packet) { in CheckTraceStats()
234 std::vector<TracePacket>* packets, bool has_more) { in TEST_F()
242 protos::TracePacket packet; in TEST_F()
355 const protos::TracePacket& packet = tmp_trace.packet(i); 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
Dlife-of-a-tracing-session.md35 [`TracePacket`](/protos/perfetto/trace/trace_packet.proto).
38 14. While writing a `TracePacket`, the `TraceWriter` will unavoidably cross the
46 17. If one or more long `TracePacket` were fragmented over several chunks, it is
76 24. The service reads the trace buffers and streams all the `TracePacket(s)`
Dsecurity-model.md54 The tracing service guarantees that the `TracePacket` fields defined also in
61 At the moment nothing prevents that a producer writes `TracePacket(s)` that do
65 However, the service appends the POSIX uid of the producer to each `TracePacket`
/external/perfetto/test/
Dtest_helper.h40 void OnTraceData(std::vector<TracePacket> packets, bool has_more) override;
57 const std::vector<protos::TracePacket>& trace() { return trace_; } in trace()
66 std::vector<protos::TracePacket> trace_;
Dtest_helper.cc59 void TestHelper::OnTraceData(std::vector<TracePacket> packets, bool has_more) { in OnTraceData()
61 protos::TracePacket packet; in OnTraceData()
67 ASSERT_EQ(protos::TracePacket::kTrustedUid, in OnTraceData()
/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.proto33 // TracePacket(s).
36 message TracePacket { message
Dtrusted_packet.proto35 // This proto contains trusted fields of TracePacket which may only be generated
37 // ids here must be kept in sync with TracePacket.
/external/perfetto/tools/trace_to_text/
Dmain.cc90 using protos::TracePacket;
124 const std::function<void(const protos::TracePacket&)>& f) { in ForEachPacketInTrace()
160 protos::TracePacket packet; in ForEachPacketInTrace()
172 ForEachPacketInTrace(input, [&sorted](const protos::TracePacket& packet) { in TraceToSystrace()
404 &resolved_scan_inodes](const protos::TracePacket& packet) { in TraceToSummary()
/external/perfetto/src/traced/probes/
Dprocess_stats_data_source_unittest.cc66 std::unique_ptr<protos::TracePacket> packet = writer_raw_->ParseProto(); in TEST_F()
99 std::unique_ptr<protos::TracePacket> packet = writer_raw_->ParseProto(); in TEST_F()
/external/perfetto/src/tracing/ipc/service/
Dconsumer_ipc_service.cc145 std::vector<TracePacket> trace_packets, in OnTraceData()
168 for (const TracePacket& trace_packet : trace_packets) { in OnTraceData()

12