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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc

Issue 2781663003: Fix WorkerThread.Runtime UMA (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | 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/child/worker_scheduler_impl.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc b/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc
index 0063f3b04be2aaa5f07291934dff18d2acc06313..0ce5d151ecd893249c2ab48160e583439abf783f 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc
+++ b/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc
@@ -81,7 +81,7 @@ void WorkerSchedulerImpl::RemoveTaskObserver(
void WorkerSchedulerImpl::Shutdown() {
DCHECK(initialized_);
base::TimeTicks end_time = helper_.scheduler_tqm_delegate()->NowTicks();
- base::TimeDelta delta = thread_start_time_ - end_time;
+ base::TimeDelta delta = end_time - thread_start_time_;
// The lifetime could be radically different for different workers,
// some workers could be short-lived (but last at least 1 sec in
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698