Home
last modified time | relevance | path

Searched refs:xevent (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/core/profiler/internal/cpu/
Dhost_tracer_utils.cc61 XEventBuilder xevent = xline.AddEvent(*xevent_metadata); in ConvertCompleteEventsToXPlane() local
62 xevent.SetTimestampNs(event.start_time); in ConvertCompleteEventsToXPlane()
63 xevent.SetEndTimestampNs(event.end_time); in ConvertCompleteEventsToXPlane()
70 XEventBuilder xevent = xline.AddEvent(*xevent_metadata); in ConvertCompleteEventsToXPlane() local
71 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()
/external/tensorflow/tensorflow/core/profiler/convert/
Dxplane_to_trace_events.cc71 [device_id, resource_id, trace](const XEventVisitor& xevent) { in ConvertXPlaneToTraceEvents() argument
73 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()
/external/tensorflow/tensorflow/core/profiler/utils/
Dtfstreamz_utils.cc89 XEventBuilder xevent = line.AddEvent(*event_metadata); in SerializeToXPlane() local
90 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()
Dxplane_builder_test.cc49 xline.ForEachEvent([&](const XEventVisitor& xevent) { in TEST() argument
50 EXPECT_EQ(xevent.Name(), "1st event"); in TEST()
51 xevent.ForEachStat([&](const XStatVisitor& stat) { in TEST()
/external/tensorflow/tensorflow/core/profiler/internal/gpu/
Dcupti_collector.cc147 XEventBuilder xevent = line->AddEvent(*event_metadata); in CreateXEvent() local
149 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 …]
/external/tensorflow/tensorflow/python/profiler/internal/
Dpython_hooks.cc84 auto xevent = line->AddEvent(*plane->GetOrCreateEventMetadata(event.Name())); in AddEventToXLine() local
85 xevent.SetTimestampNs(event.start_time_ns); in AddEventToXLine()
86 xevent.SetEndTimestampNs(event.end_time_ns); in AddEventToXLine()