Home
last modified time | relevance | path

Searched refs:ClockDomain (Results 1 – 4 of 4) sorted by relevance

/external/perfetto/src/trace_processor/
Dclock_tracker_unittest.cc40 EXPECT_EQ(ct.ToTraceTime(ClockDomain::kRealTime, 0), base::nullopt); in TEST()
42 ct.SyncClocks(ClockDomain::kRealTime, 10, 10010); in TEST()
43 ct.SyncClocks(ClockDomain::kRealTime, 20, 20220); in TEST()
44 ct.SyncClocks(ClockDomain::kRealTime, 30, 30030); in TEST()
45 ct.SyncClocks(ClockDomain::kMonotonic, 1000, 100000); in TEST()
47 EXPECT_EQ(ct.ToTraceTime(ClockDomain::kRealTime, 0), 10000); in TEST()
48 EXPECT_EQ(ct.ToTraceTime(ClockDomain::kRealTime, 1), 10001); in TEST()
49 EXPECT_EQ(ct.ToTraceTime(ClockDomain::kRealTime, 9), 10009); in TEST()
50 EXPECT_EQ(ct.ToTraceTime(ClockDomain::kRealTime, 10), 10010); in TEST()
51 EXPECT_EQ(ct.ToTraceTime(ClockDomain::kRealTime, 11), 10011); in TEST()
[all …]
Dclock_tracker.h33 enum ClockDomain : uint32_t { enum
48 void SyncClocks(ClockDomain, int64_t clock_time_ns, int64_t trace_time_ns);
52 base::Optional<int64_t> ToTraceTime(ClockDomain, int64_t clock_time_ns);
54 int64_t GetFirstTimestamp(ClockDomain domain) const { in GetFirstTimestamp()
Dclock_tracker.cc31 void ClockTracker::SyncClocks(ClockDomain domain, in SyncClocks()
43 if (domain == ClockDomain::kMonotonic) { in SyncClocks()
60 base::Optional<int64_t> ClockTracker::ToTraceTime(ClockDomain domain, in ToTraceTime()
Dproto_trace_parser.cc1089 ct->SyncClocks(ClockDomain::kBootTime, clock_boottime, clock_boottime); in ParseClockSnapshot()
1092 ct->SyncClocks(ClockDomain::kMonotonic, clock_monotonic, clock_boottime); in ParseClockSnapshot()
1095 ct->SyncClocks(ClockDomain::kRealTime, clock_realtime, clock_boottime); in ParseClockSnapshot()
1155 context_->clock_tracker->ToTraceTime(ClockDomain::kRealTime, ts); in ParseAndroidLogEvent()