/external/tensorflow/tensorflow/core/profiler/utils/ |
D | xplane_test_utils.cc | 59 absl::string_view event_name, int64 offset_ps, int64 duration_ps, in CreateXEvent() argument 63 event_builder.SetOffsetPs(offset_ps); in CreateXEvent() 77 HostEventType event_type, int64 offset_ps, int64 duration_ps, in CreateXEvent() argument 80 offset_ps, duration_ps, stats); in CreateXEvent() 85 absl::string_view function_name, int64 offset_ps, in CreateTfFunctionCallEvent() argument 91 CreateXEvent(plane_builder, line_builder, function_name, offset_ps, in CreateTfFunctionCallEvent() 96 CreateXEvent(plane_builder, line_builder, function_name, offset_ps, in CreateTfFunctionCallEvent()
|
D | derived_timeline.cc | 48 XEvent CreateXEvent(const XEventMetadata& metadata, int64 offset_ps, in CreateXEvent() argument 54 event.set_offset_ps(offset_ps); in CreateXEvent() 66 void ProcessTfOpEvent(absl::string_view tf_op_full_name, int64 offset_ps, in ProcessTfOpEvent() argument 80 *plane_builder->GetOrCreateEventMetadata(tf_name_scope), offset_ps, in ProcessTfOpEvent() 91 CreateXEvent(*tf_op_event_metadata, offset_ps, duration_ps, in ProcessTfOpEvent() 106 int64 offset_ps = event.offset_ps(); in ExpandOrAddLevelEvent() local 111 DCHECK(!last_event || last_event->OffsetPs() <= offset_ps); in ExpandOrAddLevelEvent() 115 last_event->SetDurationPs((offset_ps + duration_ps) - in ExpandOrAddLevelEvent() 167 int64 offset_ps = event.OffsetPs(); in DeriveEventsFromAnnotations() local 192 *plane.GetOrCreateEventMetadata(absl::StrCat(*group_id)), offset_ps, in DeriveEventsFromAnnotations() [all …]
|
D | xplane_test_utils.h | 37 absl::string_view event_name, int64 offset_ps, int64 duration_ps, 42 HostEventType event_type, int64 offset_ps, int64 duration_ps, 47 absl::string_view function_name, int64 offset_ps,
|
D | xplane_builder.cc | 132 int64 offset_ps = NanosToPicos(line_->timestamp_ns() - timestamp_ns); in SetTimestampNsAndAdjustEventOffsets() local 134 if (offset_ps) { in SetTimestampNsAndAdjustEventOffsets() 136 event.set_offset_ps(event.offset_ps() + offset_ps); in SetTimestampNsAndAdjustEventOffsets()
|
D | xplane_utils_test.cc | 34 XEvent CreateEvent(int64 offset_ps, int64 duration_ps) { in CreateEvent() argument 36 event.set_offset_ps(offset_ps); in CreateEvent() 151 EXPECT_EQ(plane.lines(0).events(0).offset_ps(), 100); in TEST() 153 EXPECT_EQ(plane.lines(0).events(1).offset_ps(), 120); in TEST() 155 EXPECT_EQ(plane.lines(0).events(2).offset_ps(), 120); in TEST() 157 EXPECT_EQ(plane.lines(0).events(3).offset_ps(), 200); in TEST() 208 EXPECT_EQ(event.offset_ps(), NanosToPicos(offset_ns)); in CheckXEvent()
|
D | xplane_builder.h | 175 int64 OffsetPs() const { return event_->offset_ps(); } in OffsetPs() 178 void SetOffsetPs(int64 offset_ps) { event_->set_offset_ps(offset_ps); } in SetOffsetPs() argument 199 event_->offset_ps()); in SetEndTimestampPs() 203 event_->offset_ps()); in SetEndTimestampNs() 207 return Timespan(NanosToPicos(line_->timestamp_ns()) + event_->offset_ps(), in GetTimespan()
|
D | xplane_visitor.h | 160 double OffsetNs() const { return PicosToNanos(event_->offset_ps()); } in OffsetNs() 162 int64 OffsetPs() const { return event_->offset_ps(); } in OffsetPs() 169 return NanosToPicos(line_->timestamp_ns()) + event_->offset_ps(); in TimestampPs() 177 return event_->offset_ps() + event_->duration_ps(); in EndOffsetPs()
|
D | derived_timeline.h | 76 void ProcessTfOpEvent(absl::string_view tf_op_full_name, int64 offset_ps,
|
D | xplane_utils.h | 34 return Timespan(event.offset_ps(), event.duration_ps()); in XEventTimespan()
|
/external/tensorflow/tensorflow/core/profiler/protobuf/ |
D | xplane.proto | 63 // XEvent.offset_ps is relative to this timestamp. 85 int64 offset_ps = 2; field
|