Lines Matching refs:snapshots
34 ClockSnapshotVector& snapshots = clocks_[domain]; in SyncClocks() local
35 if (!snapshots.empty()) { in SyncClocks()
37 if (trace_time_ns <= snapshots.back().trace_time_ns) { in SyncClocks()
42 if (clock_time_ns <= snapshots.back().clock_time_ns) { in SyncClocks()
51 while (!snapshots.empty() && in SyncClocks()
52 snapshots.back().clock_time_ns >= clock_time_ns) { in SyncClocks()
53 snapshots.pop_back(); in SyncClocks()
57 snapshots.emplace_back(ClockSnapshot{clock_time_ns, trace_time_ns}); in SyncClocks()
62 ClockSnapshotVector& snapshots = clocks_[domain]; in ToTraceTime() local
63 if (snapshots.empty()) { in ToTraceTime()
70 auto it = std::upper_bound(snapshots.begin(), snapshots.end(), clock_time_ns, in ToTraceTime()
72 if (it != snapshots.begin()) in ToTraceTime()