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

Unified Diff: base/threading/worker_pool_posix.cc

Issue 8548005: Adjust interfaces to indicate when tracking is in progress (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/profiler/tracked_time_unittest.cc ('k') | base/threading/worker_pool_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/threading/worker_pool_posix.cc
===================================================================
--- base/threading/worker_pool_posix.cc (revision 109839)
+++ base/threading/worker_pool_posix.cc (working copy)
@@ -90,13 +90,13 @@
"src_func", pending_task.posted_from.function_name());
tracked_objects::TrackedTime start_time =
- tracked_objects::ThreadData::Now();
+ tracked_objects::ThreadData::NowForStartOfRun();
pending_task.task.Run();
tracked_objects::ThreadData::TallyRunOnWorkerThreadIfTracking(
pending_task.birth_tally, pending_task.time_posted,
- start_time, tracked_objects::ThreadData::Now());
+ start_time, tracked_objects::ThreadData::NowForEndOfRun());
}
// The WorkerThread is non-joinable, so it deletes itself.
« no previous file with comments | « base/profiler/tracked_time_unittest.cc ('k') | base/threading/worker_pool_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698