Searched refs:xevent (Results 1 – 6 of 6) sorted by relevance
61 XEventBuilder xevent = xline.AddEvent(*xevent_metadata); in ConvertCompleteEventsToXPlane() local62 xevent.SetTimestampNs(event.start_time); in ConvertCompleteEventsToXPlane()63 xevent.SetEndTimestampNs(event.end_time); in ConvertCompleteEventsToXPlane()70 XEventBuilder xevent = xline.AddEvent(*xevent_metadata); in ConvertCompleteEventsToXPlane() local71 xevent.SetTimestampNs(event.start_time); in ConvertCompleteEventsToXPlane()72 xevent.SetEndTimestampNs(event.end_time); in ConvertCompleteEventsToXPlane()73 xevent.ReserveStats(annotation.metadata.size()); in ConvertCompleteEventsToXPlane()77 xevent.ParseAndAddStatValue(*xstat_metadata, metadata.value); in ConvertCompleteEventsToXPlane()
71 [device_id, resource_id, trace](const XEventVisitor& xevent) { in ConvertXPlaneToTraceEvents() argument73 xevent.Type().value_or(HostEventType::kUnknownHostEventType); in ConvertXPlaneToTraceEvents()79 if (xevent.HasDisplayName()) { in ConvertXPlaneToTraceEvents()80 event->set_name(std::string(xevent.DisplayName())); in ConvertXPlaneToTraceEvents()81 args["long_name"] = std::string(xevent.Name()); in ConvertXPlaneToTraceEvents()83 event->set_name(std::string(xevent.Name())); in ConvertXPlaneToTraceEvents()85 event->set_timestamp_ps(xevent.TimestampPs()); in ConvertXPlaneToTraceEvents()86 event->set_duration_ps(xevent.DurationPs()); in ConvertXPlaneToTraceEvents()88 xevent.ForEachStat([&](const XStatVisitor& stat) { in ConvertXPlaneToTraceEvents()
89 XEventBuilder xevent = line.AddEvent(*event_metadata); in SerializeToXPlane() local90 xevent.SetTimestampNs(snapshot.start_time_ns); in SerializeToXPlane()91 xevent.SetEndTimestampNs(snapshot.end_time_ns); in SerializeToXPlane()106 xevent.AddStatValue(*metadata, point->int64_value); in SerializeToXPlane()109 xevent.AddStatValue(*metadata, point->bool_value); in SerializeToXPlane()112 xevent.AddStatValue(*metadata, *xplane.GetOrCreateStatMetadata( in SerializeToXPlane()116 xevent.AddStatValue(*metadata, point->histogram_value); in SerializeToXPlane()119 xevent.AddStatValue(*metadata, ToProto(point->percentiles_value)); in SerializeToXPlane()
49 xline.ForEachEvent([&](const XEventVisitor& xevent) { in TEST() argument50 EXPECT_EQ(xevent.Name(), "1st event"); in TEST()51 xevent.ForEachStat([&](const XStatVisitor& stat) { in TEST()
147 XEventBuilder xevent = line->AddEvent(*event_metadata); in CreateXEvent() local149 xevent.SetTimestampNs(event.start_time_ns); in CreateXEvent()150 xevent.SetEndTimestampNs(event.end_time_ns); in CreateXEvent()152 xevent.AddStatValue( in CreateXEvent()157 xevent.AddStatValue(*plane->GetOrCreateStatMetadata( in CreateXEvent()162 xevent.AddStatValue(*plane->GetOrCreateStatMetadata( in CreateXEvent()167 xevent.AddStatValue( in CreateXEvent()172 xevent.AddStatValue( in CreateXEvent()198 xevent.AddStatValue(*plane->GetOrCreateStatMetadata(GetStatTypeStr( in CreateXEvent()201 xevent.AddStatValue(*plane->GetOrCreateStatMetadata( in CreateXEvent()[all …]
84 auto xevent = line->AddEvent(*plane->GetOrCreateEventMetadata(event.Name())); in AddEventToXLine() local85 xevent.SetTimestampNs(event.start_time_ns); in AddEventToXLine()86 xevent.SetEndTimestampNs(event.end_time_ns); in AddEventToXLine()