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

Side by Side Diff: base/tracking_info.h

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
« no previous file with comments | « base/threading/sequenced_worker_pool.cc ('k') | base/tracking_info.cc » ('j') | 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 // This is a simple struct with tracking information that is stored 5 // This is a simple struct with tracking information that is stored
6 // with a PendingTask (when message_loop is handling the task). 6 // with a PendingTask (when message_loop is handling the task).
7 // Only the information that is shared with the profiler in tracked_objects 7 // Only the information that is shared with the profiler in tracked_objects
8 // are included in this structure. 8 // are included in this structure.
9 9
10 10
11 #ifndef BASE_TRACKING_INFO_H_ 11 #ifndef BASE_TRACKING_INFO_H_
12 #define BASE_TRACKING_INFO_H_ 12 #define BASE_TRACKING_INFO_H_
13 13
14 #include "base/time.h" 14 #include "base/time.h"
15 15
16 namespace tracked_objects { 16 namespace tracked_objects {
17 class Location; 17 class Location;
18 class Births; 18 class Births;
19 } 19 }
20 20
21 namespace base { 21 namespace base {
22 22
23 // This structure is copied around by value. 23 // This structure is copied around by value.
24 struct BASE_EXPORT TrackingInfo { 24 struct BASE_EXPORT TrackingInfo {
25 TrackingInfo(const tracked_objects::Location& posted_from, 25 TrackingInfo(const tracked_objects::Location& posted_from,
26 base::TimeTicks delayed_run_time); 26 base::TimeTicks delayed_run_time);
27 TrackingInfo();
brettw 2012/07/26 18:06:30 Normally I'd expect this to be first.
jar (doing other things) 2012/07/26 18:53:26 Done.
27 ~TrackingInfo(); 28 ~TrackingInfo();
28 29
29 // Record of location and thread that the task came from. 30 // Record of location and thread that the task came from.
30 tracked_objects::Births* birth_tally; 31 tracked_objects::Births* birth_tally;
31 32
32 // Time when the related task was posted. 33 // Time when the related task was posted.
33 base::TimeTicks time_posted; 34 base::TimeTicks time_posted;
34 35
35 // The time when the task should be run. 36 // The time when the task should be run.
36 base::TimeTicks delayed_run_time; 37 base::TimeTicks delayed_run_time;
37 }; 38 };
38 39
39 } // namespace base 40 } // namespace base
40 41
41 #endif // BASE_TRACKING_INFO_H_ 42 #endif // BASE_TRACKING_INFO_H_
OLDNEW
« no previous file with comments | « base/threading/sequenced_worker_pool.cc ('k') | base/tracking_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698