Lines Matching refs:TrackEvent
156 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()
868 auto now = perfetto::TrackEvent::GetTraceTimeNs(); in TEST_P()
875 EXPECT_EQ(clock_id, perfetto::TrackEvent::GetTraceClockId()); in TEST_P()
941 perfetto::protos::gen::TrackEvent::TYPE_SLICE_BEGIN) { in TEST_P()
949 perfetto::protos::gen::TrackEvent::TYPE_SLICE_END) { in TEST_P()
1027 perfetto::TrackEvent::Register(); in TEST_P()
1044 perfetto::TrackEvent::Register(); in TEST_P()
1083 perfetto::TrackEvent::Trace( in TEST_P()
1084 [&main_state](perfetto::TrackEvent::TraceContext ctx) { in TEST_P()
1185 perfetto::TrackEvent::Flush(); in TEST_P()
1259 perfetto::TrackEvent::SetProcessDescriptor( in TEST_P()
1267 perfetto::TrackEvent::SetTrackDescriptor( in TEST_P()
1271 perfetto::TrackEvent::EraseTrackDescriptor(erased); in TEST_P()
1286 perfetto::TrackEvent::SetThreadDescriptor( in TEST_P()
1296 perfetto::TrackEvent::SetProcessDescriptor( in TEST_P()
1300 perfetto::TrackEvent::Flush(); in TEST_P()
1305 perfetto::TrackEvent::SetProcessDescriptor( in TEST_P()
1374 perfetto::TrackEvent::SetTrackDescriptor(track, std::move(desc)); in TEST_P()
1375 perfetto::TrackEvent::Flush(); in TEST_P()
1408 perfetto::TrackEvent::SetTrackDescriptor( in TEST_P()
1434 perfetto::TrackEvent::Flush(); in TEST_P()
1462 perfetto::protos::gen::TrackEvent::TYPE_SLICE_BEGIN) { in TEST_P()
1473 perfetto::TrackEvent::EraseTrackDescriptor(track); in TEST_P()
1483 perfetto::TrackEvent::Flush(); in TEST_P()
1515 perfetto::TrackEvent::EraseTrackDescriptor(track); in TEST_P()
1528 perfetto::TrackEvent::Flush(); in TEST_P()
1541 if (track_event.type() == perfetto::protos::gen::TrackEvent::TYPE_INSTANT) { in TEST_P()
1557 perfetto::TrackEvent::Flush(); in TEST_P()
1596 perfetto::TrackEvent::Flush(); in TEST_P()
1609 case perfetto::protos::gen::TrackEvent::TYPE_SLICE_BEGIN: in TEST_P()
1612 case perfetto::protos::gen::TrackEvent::TYPE_SLICE_END: in TEST_P()
1615 case perfetto::protos::gen::TrackEvent::TYPE_INSTANT: in TEST_P()
1618 case perfetto::protos::gen::TrackEvent::TYPE_COUNTER: in TEST_P()
1619 case perfetto::protos::gen::TrackEvent::TYPE_UNSPECIFIED: in TEST_P()
1624 perfetto::TrackEvent::EraseTrackDescriptor(track); in TEST_P()
1638 perfetto::TrackEvent::Flush(); in TEST_P()
1651 case perfetto::protos::gen::TrackEvent::TYPE_SLICE_BEGIN: in TEST_P()
1654 case perfetto::protos::gen::TrackEvent::TYPE_SLICE_END: in TEST_P()
1657 case perfetto::protos::gen::TrackEvent::TYPE_INSTANT: in TEST_P()
1658 case perfetto::protos::gen::TrackEvent::TYPE_COUNTER: in TEST_P()
1659 case perfetto::protos::gen::TrackEvent::TYPE_UNSPECIFIED: in TEST_P()
1679 perfetto::TrackEvent::Flush(); in TEST_P()
1731 perfetto::protos::gen::TrackEvent::TYPE_SLICE_BEGIN) in TEST_P()
1755 perfetto::protos::pbzero::TrackEvent::kFlowIds, flow_ids); in TEST_P()
1771 perfetto::protos::gen::TrackEvent::TYPE_SLICE_BEGIN) { in TEST_P()
1796 perfetto::protos::pbzero::TrackEvent::kLogMessage, in TEST_P()
1813 perfetto::protos::gen::TrackEvent::TYPE_SLICE_BEGIN) { in TEST_P()
2049 perfetto::TrackEvent::Flush(); in TEST_P()
2060 class TestTrackEvent : public perfetto::protos::pbzero::TrackEvent {
2082 perfetto::TrackEvent::Flush(); in TEST_P()
2125 perfetto::TrackEvent::Flush(); in TEST_P()
2164 perfetto::TrackEvent::Flush(); in TEST_P()
2178 perfetto::TrackEvent::Flush(); in TEST_P()
2195 perfetto::TrackEvent::Flush(); in TEST_P()
2232 perfetto::TrackEvent::Flush(); in TEST_P()
2259 perfetto::TrackEvent::Flush(); in TEST_P()
2302 perfetto::TrackEvent::Flush(); in TEST_P()
2318 perfetto::TrackEvent::Flush(); in TEST_P()
2339 perfetto::TrackEvent::Flush(); in TEST_P()
2354 perfetto::protos::gen::TrackEvent::TYPE_SLICE_BEGIN) in TEST_P()
2389 perfetto::TrackEvent::Flush(); in TEST_P()
2410 perfetto::TrackEvent::Flush(); in TEST_P()
2445 perfetto::TrackEvent::Flush(); in TEST_P()
3305 perfetto::TrackEvent::Flush(); in TEST_P()
3336 perfetto::TrackEvent::Flush(); in TEST_P()
3357 perfetto::TrackEvent::Flush(); in TEST_P()
3380 perfetto::TrackEvent::Flush(); in TEST_P()
3411 perfetto::TrackEvent::Flush(); in TEST_P()
3589 perfetto::protos::pbzero::TrackEvent::Decoder track_event( in OnTracePacket()
3658 perfetto::TrackEvent::SetTrackDescriptor( in EmitConsoleEvents()
3765 perfetto::TrackEvent::RemoveSessionObserver(this); in TEST_P()
3771 EXPECT_TRUE(perfetto::TrackEvent::IsEnabled()); in TEST_P()
3779 EXPECT_TRUE(perfetto::TrackEvent::IsEnabled()); in TEST_P()
3788 EXPECT_TRUE(perfetto::TrackEvent::IsEnabled()); in TEST_P()
3791 perfetto::TrackEvent::Flush(); in TEST_P()
3800 EXPECT_FALSE(perfetto::TrackEvent::IsEnabled()); in TEST_P()
3803 perfetto::TrackEvent::AddSessionObserver(&observer); in TEST_P()
3811 perfetto::TrackEvent::RemoveSessionObserver(&observer); in TEST_P()
3819 perfetto::TrackEvent::AddSessionObserver(&observer); in TEST_P()
3820 perfetto::TrackEvent::RemoveSessionObserver(&observer); in TEST_P()
3833 perfetto::TrackEvent::AddSessionObserver(&observer); in TEST_P()
3840 perfetto::TrackEvent::RemoveSessionObserver(&observer); in TEST_P()
3847 perfetto::TrackEvent::AddSessionObserver(&observer1); in TEST_P()
3848 perfetto::TrackEvent::AddSessionObserver(&observer2); in TEST_P()
3852 perfetto::TrackEvent::RemoveSessionObserver(&observer1); in TEST_P()
3853 perfetto::TrackEvent::RemoveSessionObserver(&observer2); in TEST_P()
3863 perfetto::TrackEvent::AddSessionObserver(&observer1); in TEST_P()
3864 perfetto::TrackEvent::AddSessionObserver(&observer2); in TEST_P()
3867 perfetto::TrackEvent::RemoveSessionObserver(&observer1); in TEST_P()
3869 perfetto::TrackEvent::RemoveSessionObserver(&observer2); in TEST_P()
3874 EXPECT_FALSE(perfetto::TrackEvent::IsEnabled()); in TEST_P()
3907 perfetto::TrackEvent::Flush(); in TEST_P()
3946 perfetto::TrackEvent::Flush(); in TEST_P()