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

Unified Diff: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc

Issue 2956683002: chrome://profiler infrastructure uses base time types. (Closed)
Patch Set: Address nit. Created 3 years, 6 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 | « base/tracking_info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
index c8049df9e28d21d6afa4c554f4c522c4e5351a63..d409fcf8f7e411d7bbf53e1ae2e8fde7d75294bf 100644
--- a/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
+++ b/third_party/WebKit/Source/platform/scheduler/base/task_queue_manager.cc
@@ -29,10 +29,10 @@ void RecordDelayedTaskLateness(base::TimeDelta lateness) {
lateness);
}
-void RecordImmediateTaskQueueingDuration(tracked_objects::Duration duration) {
+void RecordImmediateTaskQueueingDuration(base::TimeDelta duration) {
UMA_HISTOGRAM_TIMES(
"RendererScheduler.TaskQueueManager.ImmediateTaskQueueingDuration",
- base::TimeDelta::FromMilliseconds(duration.InMilliseconds()));
+ duration);
}
double MonotonicTimeInSeconds(base::TimeTicks time_ticks) {
@@ -564,7 +564,7 @@ void TaskQueueManager::MaybeRecordTaskDelayHistograms(
RecordDelayedTaskLateness(delegate_->NowTicks() -
pending_task.delayed_run_time);
} else if (!pending_task.time_posted.is_null()) {
- RecordImmediateTaskQueueingDuration(tracked_objects::TrackedTime::Now() -
+ RecordImmediateTaskQueueingDuration(base::TimeTicks::Now() -
pending_task.time_posted);
}
}
« no previous file with comments | « base/tracking_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698