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

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, 5 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
« base/tracking_info.h ('K') | « base/tracking_info.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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( 11 TrackingInfo::TrackingInfo(
12 const tracked_objects::Location& posted_from, 12 const tracked_objects::Location& posted_from,
13 base::TimeTicks delayed_run_time) 13 base::TimeTicks delayed_run_time)
14 : birth_tally( 14 : birth_tally(
15 tracked_objects::ThreadData::TallyABirthIfActive(posted_from)), 15 tracked_objects::ThreadData::TallyABirthIfActive(posted_from)),
16 time_posted(TimeTicks::Now()), 16 time_posted(TimeTicks::Now()),
17 delayed_run_time(delayed_run_time) { 17 delayed_run_time(delayed_run_time) {
18 } 18 }
19 19
20 TrackingInfo::TrackingInfo()
21 : birth_tally(static_cast<tracked_objects::Births*>(NULL)) {
22 }
23
20 TrackingInfo::~TrackingInfo() {} 24 TrackingInfo::~TrackingInfo() {}
21 25
22 } // namespace base 26 } // namespace base
23 27
OLDNEW
« base/tracking_info.h ('K') | « base/tracking_info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698