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

Side by Side Diff: base/tracking_info.cc

Issue 10825022: Support profiling of tasks run as sequenced_tasks (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/tracking_info.h" 5 #include "base/tracking_info.h"
6 6
7 #include "base/tracked_objects.h" 7 #include "base/tracked_objects.h"
8 8
9 namespace base { 9 namespace base {
10 10
11 TrackingInfo::TrackingInfo()
12 : birth_tally(static_cast<tracked_objects::Births*>(NULL)) {
akalin 2012/07/27 17:45:39 any particular reason for the explicit cast? just
jar (doing other things) 2012/07/27 18:15:46 I had vague recollections of some compiler complai
akalin 2012/07/27 20:18:18 I think I'd prefer to yank it out (and I expect it
jar (doing other things) 2012/07/27 21:52:29 Done.
13 }
14
11 TrackingInfo::TrackingInfo( 15 TrackingInfo::TrackingInfo(
12 const tracked_objects::Location& posted_from, 16 const tracked_objects::Location& posted_from,
13 base::TimeTicks delayed_run_time) 17 base::TimeTicks delayed_run_time)
14 : birth_tally( 18 : birth_tally(
15 tracked_objects::ThreadData::TallyABirthIfActive(posted_from)), 19 tracked_objects::ThreadData::TallyABirthIfActive(posted_from)),
16 time_posted(TimeTicks::Now()), 20 time_posted(TimeTicks::Now()),
17 delayed_run_time(delayed_run_time) { 21 delayed_run_time(delayed_run_time) {
18 } 22 }
19 23
20 TrackingInfo::~TrackingInfo() {} 24 TrackingInfo::~TrackingInfo() {}
21 25
22 } // namespace base 26 } // namespace base
23 27
OLDNEW
« base/threading/sequenced_worker_pool.cc ('K') | « base/tracking_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698