Home
last modified time | relevance | path

Searched refs:NanosToPicos (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/core/profiler/convert/
Dxplane_to_op_metrics_db_test.cc75 NanosToPicos(kTfOp1DurationNs * 2 + kTfOp2DurationNs); in TEST()
77 uint64 total_duration = NanosToPicos(kTfOp2StartNs - kTfOp1StartNs + in TEST()
86 EXPECT_EQ(NanosToPicos(kTfOp1DurationNs) * 2, op_1.time_ps()); in TEST()
91 EXPECT_EQ(NanosToPicos(2000), idle.time_ps()); in TEST()
97 EXPECT_EQ(NanosToPicos(kTfOp2DurationNs), op_2.time_ps()); in TEST()
139 uint64 total_op_duration = NanosToPicos( in TEST()
145 NanosToPicos(kKernel3StartNs + kKernel3DurationNs - kKernel1StartNs); in TEST()
153 EXPECT_EQ(NanosToPicos(kKernel1DurationNs) * 2, op_1.time_ps()); in TEST()
159 EXPECT_EQ(NanosToPicos(kKernel2DurationNs) * 2, op_2.time_ps()); in TEST()
165 EXPECT_EQ(NanosToPicos(kKernel3DurationNs), op_3.time_ps()); in TEST()
[all …]
/external/tensorflow/tensorflow/core/profiler/utils/
Dxplane_builder.h180 void SetOffsetNs(int64 offset_ns) { SetOffsetPs(NanosToPicos(offset_ns)); } in SetOffsetNs()
183 SetOffsetPs(NanosToPicos(timestamp_ns - line_->timestamp_ns())); in SetTimestampNs()
194 SetDurationPs(NanosToPicos(duration_ns)); in SetDurationNs()
202 SetDurationPs(NanosToPicos(end_timestamp_ns - line_->timestamp_ns()) - in SetEndTimestampNs()
207 return Timespan(NanosToPicos(line_->timestamp_ns()) + event_->offset_ps(), in GetTimespan()
Dtime_utils.h31 inline uint64 NanosToPicos(uint64 ns) { return ns * 1000; } in NanosToPicos() function
Dxplane_builder.cc132 int64 offset_ps = NanosToPicos(line_->timestamp_ns() - timestamp_ns); in SetTimestampNsAndAdjustEventOffsets()
Dxplane_utils_test.cc208 EXPECT_EQ(event.offset_ps(), NanosToPicos(offset_ns)); in CheckXEvent()
209 EXPECT_EQ(event.duration_ps(), NanosToPicos(duration_ns)); in CheckXEvent()
Dxplane_visitor.h169 return NanosToPicos(line_->timestamp_ns()) + event_->offset_ps(); in TimestampPs()
Dxplane_utils.cc259 NanosToPicos(line.TimestampNs() - dst_line.TimestampNs()); in MergePlanes()