Home
last modified time | relevance | path

Searched refs:TrackEvent (Results 1 – 25 of 46) sorted by relevance

12

/external/perfetto/src/trace_processor/util/
Dprotozero_to_text_unittests.cc38 using perfetto::protos::pbzero::TrackEvent; in TEST()
39 protozero::HeapBuffered<TrackEvent> msg{kChunkSize, kChunkSize}; in TEST()
56 using perfetto::protos::pbzero::TrackEvent; in TEST()
57 protozero::HeapBuffered<TrackEvent> msg{kChunkSize, kChunkSize}; in TEST()
94 using perfetto::protos::pbzero::TrackEvent; in TEST()
95 protozero::HeapBuffered<TrackEvent> msg{kChunkSize, kChunkSize}; in TEST()
96 msg->set_type(TrackEvent::TYPE_SLICE_BEGIN); in TEST()
111 using perfetto::protos::pbzero::TrackEvent; in TEST()
112 protozero::HeapBuffered<TrackEvent> msg{kChunkSize, kChunkSize}; in TEST()
129 using perfetto::protos::pbzero::TrackEvent; in TEST()
[all …]
/external/perfetto/include/perfetto/tracing/internal/
Dtrack_event_macros.h87 struct PERFETTO_COMPONENT_EXPORT TrackEvent \
89 TrackEvent, &internal::kCategoryRegistry> {}
116 tns::TrackEvent::CallIfEnabled( \
118 tns::TrackEvent::TraceForCategory(instances, category, \
122 tns::TrackEvent::CallIfCategoryEnabled( \
125 tns::TrackEvent::TraceForCategory( \
156 ? ::PERFETTO_TRACK_EVENT_NAMESPACE::TrackEvent:: \
158 : ::PERFETTO_TRACK_EVENT_NAMESPACE::TrackEvent::IsCategoryEnabled( \
Dtrack_event_data_source.h234 perfetto::protos::pbzero::TrackEvent::Type type,
255 perfetto::protos::pbzero::TrackEvent::Type type,
272 perfetto::protos::pbzero::TrackEvent::Type type,
293 perfetto::protos::pbzero::TrackEvent::Type type,
308 perfetto::protos::pbzero::TrackEvent::Type type,
311 PERFETTO_DCHECK(type == perfetto::protos::pbzero::TrackEvent::TYPE_COUNTER);
325 perfetto::protos::pbzero::TrackEvent::Type type,
329 PERFETTO_DCHECK(type == perfetto::protos::pbzero::TrackEvent::TYPE_COUNTER);
427 perfetto::protos::pbzero::TrackEvent::Type type,
474 type != protos::pbzero::TrackEvent::TYPE_SLICE_END &&
[all …]
/external/perfetto/include/perfetto/tracing/
Dtrack_event.h182 PERFETTO_TRACK_EVENT_NAMESPACE::TrackEvent, \
192 PERFETTO_TRACK_EVENT_NAMESPACE::TrackEvent, \
296 ::perfetto::protos::pbzero::TrackEvent::TYPE_SLICE_BEGIN, ##__VA_ARGS__)
302 ::perfetto::protos::pbzero::TrackEvent::TYPE_SLICE_END, ##__VA_ARGS__)
312 ::perfetto::protos::pbzero::TrackEvent::TYPE_INSTANT, ##__VA_ARGS__)
359 ::perfetto::protos::pbzero::TrackEvent::TYPE_COUNTER, \
Devent_context.h46 protos::pbzero::TrackEvent* event,
58 template <typename EventType = protos::pbzero::TrackEvent>
63 sizeof(EventType) == sizeof(protos::pbzero::TrackEvent), in event()
90 protos::pbzero::TrackEvent* event_;
Dtrack_event_state_tracker.h32 class TrackEvent; variable
95 const perfetto::protos::pbzero::TrackEvent::Decoder&);
98 const perfetto::protos::pbzero::TrackEvent::Decoder& track_event;
Dtrack_event_legacy.h288 void Write(protos::pbzero::TrackEvent::LegacyEvent*,
309 static constexpr protos::pbzero::TrackEvent::Type PhaseToType(char phase) { in PhaseToType()
312 protos::pbzero::TrackEvent::TYPE_SLICE_BEGIN : in PhaseToType()
314 protos::pbzero::TrackEvent::TYPE_SLICE_END : in PhaseToType()
316 protos::pbzero::TrackEvent::TYPE_INSTANT : in PhaseToType()
317 protos::pbzero::TrackEvent::TYPE_UNSPECIFIED; in PhaseToType()
397 if (PhaseToType(phase) == protos::pbzero::TrackEvent::TYPE_UNSPECIFIED) in NeedLegacyFlags()
412 protos::pbzero::TrackEvent::LegacyEvent* legacy_event, in SetLegacyFlags()
415 if (PhaseToType(phase) == protos::pbzero::TrackEvent::TYPE_UNSPECIFIED) in SetLegacyFlags()
427 protos::pbzero::TrackEvent::LegacyEvent::FLOW_INOUT); in SetLegacyFlags()
[all …]
/external/perfetto/examples/sdk/
Dexample_system_wide.cc28 Observer() { perfetto::TrackEvent::AddSessionObserver(this); } in Observer()
29 ~Observer() { perfetto::TrackEvent::RemoveSessionObserver(this); } in ~Observer()
39 cv.wait(lock, [] { return perfetto::TrackEvent::IsEnabled(); }); in WaitForTracingStart()
55 perfetto::TrackEvent::Register(); in InitializePerfetto()
83 perfetto::TrackEvent::Flush(); in main()
Dexample.cc33 perfetto::TrackEvent::Register(); in InitializePerfetto()
53 perfetto::TrackEvent::Flush(); in StopTracing()
94 perfetto::TrackEvent::SetTrackDescriptor(process_track, desc); in main()
Dexample_console.cc29 perfetto::TrackEvent::Register(); in InitializePerfetto()
/external/perfetto/src/tracing/test/
Dapi_integrationtest.cc156 return {TrackEvent::GetTraceClockId(), timestamp.ts}; in ConvertTimestampToTraceTimeNs()
386 perfetto::TrackEvent::Register(); in SetUp()
478 perfetto::protos::gen::TrackEvent::TYPE_SLICE_BEGIN) in ReadLogMessagesFromTrace()
571 case perfetto::protos::gen::TrackEvent::TYPE_SLICE_BEGIN: in ReadSlicesFromTrace()
574 case perfetto::protos::gen::TrackEvent::TYPE_SLICE_END: in ReadSlicesFromTrace()
577 case perfetto::protos::gen::TrackEvent::TYPE_INSTANT: in ReadSlicesFromTrace()
580 case perfetto::protos::gen::TrackEvent::TYPE_UNSPECIFIED: { in ReadSlicesFromTrace()
588 case perfetto::protos::gen::TrackEvent::TYPE_COUNTER: in ReadSlicesFromTrace()
848 TEST_P(PerfettoApiTest, TrackEvent) { in TEST_P() argument
856 perfetto::TrackEvent::Flush(); in TEST_P()
[all …]
Dtracing_module.cc32 TrackEvent::Register(); in InitializeCategories()
48 TrackEvent::Trace([&state](TrackEvent::TraceContext ctx) { in GetIncrementalState()
/external/perfetto/src/tracing/
Dtrack_event_state_tracker.cc45 perfetto::protos::pbzero::TrackEvent::Decoder track_event( in ProcessTracePacket()
91 case protos::pbzero::TrackEvent::TYPE_SLICE_BEGIN: { in ProcessTracePacket()
105 case protos::pbzero::TrackEvent::TYPE_SLICE_END: in ProcessTracePacket()
129 case protos::pbzero::TrackEvent::TYPE_INSTANT: in ProcessTracePacket()
131 case protos::pbzero::TrackEvent::TYPE_COUNTER: in ProcessTracePacket()
132 case protos::pbzero::TrackEvent::TYPE_UNSPECIFIED: in ProcessTracePacket()
146 if (track_event.type() == protos::pbzero::TrackEvent::TYPE_SLICE_END && in ProcessTracePacket()
255 const perfetto::protos::pbzero::TrackEvent::Decoder& track_event_) in ParsedTrackEvent()
Dtrack_event_legacy.cc36 void LegacyTraceId::Write(protos::pbzero::TrackEvent::LegacyEvent* event, in Write()
/external/perfetto/protos/perfetto/trace/track_event/
Dtrack_event.proto39 // NOTE: Full TrackEvent support in the client lib and chrome is WIP, thus these
47 // A simple TrackEvent packet specifies a timestamp, category, name and type:
60 // defined in a separate packet and referred to from the TrackEvent by its UUID:
105 message TrackEvent { message
128 // Type of the TrackEvent (required if |phase| in LegacyEvent is not set).
140 // does not need to repeat any TrackEvent fields it has in common with its
157 // that most other TrackEvent fields (e.g. categories, name, ..) are not
166 // here or in TrackEventDefaults, the TrackEvent will be associated with an
182 // counter values to a TrackEvent of any type. All values will share the same
190 // TrackEventDefaults and a TrackEvent, the TrackEvent uuids override the
[all …]
Ddebug_annotation.proto28 // values are prone to breakage, so please rely on typed TrackEvent fields for
33 // set the "name" field. The TrackEvent message forms an implicit root
36 // Example TrackEvent with nested annotations:
Dtrack_descriptor.proto28 // will be nested based on their timestamps, see TrackEvent::Type.
37 // |TrackEvent::track_uuid|. It is possible but not necessary to emit a
84 // TYPE_COUNTER TrackEvents (and values provided via TrackEvent's
/external/perfetto/docs/instrumentation/
Dtrack-events.md76 perfetto::TrackEvent::Register(); // Add this.
168 message TrackEvent {
292 the name and filling in the `TrackEvent::name` field manually.
331 (, "debug_name", debug_value |, TrackEvent::kFieldName, value)*
337 1. A lambda for writing custom TrackEvent fields:
370 4. Arbitrary number of TrackEvent fields (including extensions):
374 perfetto::protos::pbzero::TrackEvent::kFieldName, value);
377 5. Arbitrary combination of debug annotations and TrackEvent fields:
381 perfetto::protos::pbzero::TrackEvent::kFieldName, value1,
385 6. Arbitrary combination of debug annotations / TrackEvent fields and a lambda:
[all …]
/external/perfetto/test/trace_processor/track_event/
Dtrack_event_typed_args.textproto94 extendee: ".perfetto.protos.TrackEvent"
101 extendee: ".perfetto.protos.TrackEvent"
108 extendee: ".perfetto.protos.TrackEvent"
Dtrack_event_tracks.textproto253 # TrackEvent type. Should appear on the default descriptor track instead of
266 # But a legacy event without TrackEvent type falls back to legacy tracks (based
283 # And pid/tid overrides take effect even for TrackEvent type events.
/external/perfetto/src/tracing/internal/
Dtrack_event_internal.cc358 perfetto::protos::pbzero::TrackEvent::Type type, in WriteEvent()
367 if (type != protos::pbzero::TrackEvent::TYPE_UNSPECIFIED) in WriteEvent()
373 if (category && type != protos::pbzero::TrackEvent::TYPE_SLICE_END && in WriteEvent()
374 type != protos::pbzero::TrackEvent::TYPE_COUNTER) { in WriteEvent()
383 if (name && type != protos::pbzero::TrackEvent::TYPE_SLICE_END) { in WriteEvent()
/external/perfetto/docs/design-docs/
Dextensions.md27 extend TrackEvent {
32 Is going to generate a subclass of `TrackEvent` called `MyEvent`, that is going
34 fields defined in `TrackEvent`.
52 Deserialization of protobuf extension are supported only for TrackEvent message
/external/perfetto/protos/perfetto/trace/
Dtest_extensions.proto23 // Extensions for TrackEvent used for integration testing. This proto file is
28 extend TrackEvent {
/external/perfetto/protos/third_party/chromium/
DBUILD.gn13 # full TrackEvent descriptor is going to be included as well, increasing the
/external/perfetto/protos/perfetto/trace/chrome/
Dchrome_trace_event.proto41 // Deprecated, use TrackEvent protos instead.
113 // Deprecated, use TrackEvent protos instead.

12