• Home
  • Raw
  • Download

Lines Matching refs:track_event

476       const auto& track_event = packet.track_event();  in ReadLogMessagesFromTrace()  local
477 if (track_event.type() != in ReadLogMessagesFromTrace()
481 EXPECT_TRUE(track_event.has_log_message()); in ReadLogMessagesFromTrace()
482 const auto& log = track_event.log_message(); in ReadLogMessagesFromTrace()
560 const auto& track_event = packet.track_event(); in ReadSlicesFromTrace() local
563 if (track_event.has_track_uuid()) { in ReadSlicesFromTrace()
564 seen_tracks.insert(track_event.track_uuid()); in ReadSlicesFromTrace()
566 track << "[track=" << track_event.track_uuid() << "]"; in ReadSlicesFromTrace()
570 switch (track_event.type()) { in ReadSlicesFromTrace()
581 EXPECT_TRUE(track_event.has_legacy_event()); in ReadSlicesFromTrace()
582 EXPECT_FALSE(track_event.type()); in ReadSlicesFromTrace()
583 auto legacy_event = track_event.legacy_event(); in ReadSlicesFromTrace()
594 if (track_event.has_legacy_event()) { in ReadSlicesFromTrace()
595 auto legacy_event = track_event.legacy_event(); in ReadSlicesFromTrace()
621 for (const auto& it : track_event.category_iids()) in ReadSlicesFromTrace()
623 for (const auto& it : track_event.categories()) in ReadSlicesFromTrace()
625 if (track_event.has_name_iid()) in ReadSlicesFromTrace()
626 slice += "." + event_names[track_event.name_iid()]; in ReadSlicesFromTrace()
628 if (track_event.debug_annotations_size()) { in ReadSlicesFromTrace()
631 for (const auto& it : track_event.debug_annotations()) { in ReadSlicesFromTrace()
907 const auto& track_event = packet.track_event(); in TEST_P() local
940 if (track_event.type() == in TEST_P()
943 EXPECT_EQ(track_event.category_iids().size(), 1u); in TEST_P()
944 EXPECT_GE(track_event.category_iids()[0], 1u); in TEST_P()
945 EXPECT_EQ("test", categories[track_event.category_iids()[0]]); in TEST_P()
946 EXPECT_EQ("TestEvent", event_names[track_event.name_iid()]); in TEST_P()
948 } else if (track_event.type() == in TEST_P()
951 EXPECT_EQ(track_event.category_iids().size(), 0u); in TEST_P()
952 EXPECT_EQ(0u, track_event.name_iid()); in TEST_P()
1460 auto track_event = packet.track_event(); in TEST_P() local
1461 if (track_event.type() == in TEST_P()
1464 EXPECT_EQ(track.uuid, track_event.track_uuid()); in TEST_P()
1467 EXPECT_EQ(track.uuid, track_event.track_uuid()); in TEST_P()
1507 auto track_event = packet.track_event(); in TEST_P() local
1508 if (track_event.legacy_event().phase() == TRACE_EVENT_PHASE_ASYNC_BEGIN) { in TEST_P()
1509 EXPECT_EQ(track.uuid, track_event.track_uuid()); in TEST_P()
1540 auto track_event = packet.track_event(); in TEST_P() local
1541 if (track_event.type() == perfetto::protos::gen::TrackEvent::TYPE_INSTANT) { in TEST_P()
1542 EXPECT_EQ(789, track_event.legacy_event().pid_override()); in TEST_P()
1543 EXPECT_EQ(-1, track_event.legacy_event().tid_override()); in TEST_P()
1572 auto track_event = packet.track_event(); in TEST_P() local
1573 EXPECT_TRUE(seen_descriptors.find(track_event.track_uuid()) != in TEST_P()
1608 switch (packet.track_event().type()) { in TEST_P()
1650 switch (packet.track_event().type()) { in TEST_P()
1729 const auto& track_event = packet.track_event(); in TEST_P() local
1730 if (track_event.type() != in TEST_P()
1734 EXPECT_TRUE(track_event.has_log_message()); in TEST_P()
1735 const auto& log = track_event.log_message(); in TEST_P()
1739 const auto& dbg = track_event.debug_annotations()[0]; in TEST_P()
1769 const auto& track_event = packet.track_event(); in TEST_P() local
1770 if (track_event.type() != in TEST_P()
1775 EXPECT_THAT(track_event.flow_ids(), testing::ElementsAre(1, 2, 3)); in TEST_P()
1811 const auto& track_event = packet.track_event(); in TEST_P() local
1812 if (track_event.type() != in TEST_P()
1817 EXPECT_TRUE(track_event.has_log_message()); in TEST_P()
1818 const auto& log = track_event.log_message(); in TEST_P()
2099 auto track_event = packet.track_event(); in TEST_P() local
2100 protozero::ProtoDecoder decoder(track_event.data, track_event.size); in TEST_P()
2142 auto track_event = packet.track_event(); in TEST_P() local
2143 protozero::ProtoDecoder decoder(track_event.data, track_event.size); in TEST_P()
2352 const auto& track_event = packet.track_event(); in TEST_P() local
2353 if (track_event.type() != in TEST_P()
2357 EXPECT_TRUE(track_event.has_log_message()); in TEST_P()
2358 const auto& log = track_event.log_message(); in TEST_P()
2361 const auto& dbg = track_event.debug_annotations()[0]; in TEST_P()
3589 perfetto::protos::pbzero::TrackEvent::Decoder track_event( in OnTracePacket() local
3590 packet.track_event()); in OnTracePacket()
3591 uint64_t name_iid = track_event.name_iid(); in OnTracePacket()
3957 auto event = packet.track_event(); in TEST_P()