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

Unified Diff: base/profiler/scoped_profile.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/message_loop.cc ('k') | base/profiler/tracked_time_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/profiler/scoped_profile.cc
===================================================================
--- base/profiler/scoped_profile.cc (revision 109839)
+++ base/profiler/scoped_profile.cc (working copy)
@@ -13,7 +13,7 @@
ScopedProfile::ScopedProfile(const Location& location)
: birth_(ThreadData::TallyABirthIfActive(location)),
- start_of_run_(ThreadData::Now()) {
+ start_of_run_(ThreadData::NowForStartOfRun()) {
}
ScopedProfile::~ScopedProfile() {
@@ -24,7 +24,7 @@
if (!birth_)
return;
ThreadData::TallyRunInAScopedRegionIfTracking(birth_, start_of_run_,
- ThreadData::Now());
+ ThreadData::NowForEndOfRun());
birth_ = NULL;
}
« no previous file with comments | « base/message_loop.cc ('k') | base/profiler/tracked_time_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698