Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Unified Diff: ui/events/latency_info.cc

Issue 2359503002: Let TRACE_EVENT_XXX_WITH_TIMESTAMP accept TimeTicks instead of int64_t (Closed)
Patch Set: Rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/child/idle_helper.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/latency_info.cc
diff --git a/ui/events/latency_info.cc b/ui/events/latency_info.cc
index 4ef3d9c6fb1e3ae53118085b6dd9517d9a1e7cbf..fcad232fa7d343fbdf6343b9de0ac8154a415c47 100644
--- a/ui/events/latency_info.cc
+++ b/ui/events/latency_info.cc
@@ -243,16 +243,16 @@ void LatencyInfo::AddLatencyNumberWithTimestampImpl(
// originally created, e.g. the timestamp of its ORIGINAL/UI_COMPONENT,
// not when we actually issue the ASYNC_BEGIN trace event.
LatencyComponent begin_component;
- int64_t ts = 0;
+ base::TimeTicks ts;
if (FindLatency(INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT,
0,
&begin_component) ||
FindLatency(INPUT_EVENT_LATENCY_UI_COMPONENT,
0,
&begin_component)) {
- ts = begin_component.event_time.ToInternalValue();
+ ts = begin_component.event_time;
} else {
- ts = base::TimeTicks::Now().ToInternalValue();
+ ts = base::TimeTicks::Now();
}
if (trace_name_str) {
« no previous file with comments | « third_party/WebKit/Source/platform/scheduler/child/idle_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698