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

Side by Side Diff: base/tracked_objects.h

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « base/threading/worker_pool_win.cc ('k') | base/tracked_objects.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef BASE_TRACKED_OBJECTS_H_ 5 #ifndef BASE_TRACKED_OBJECTS_H_
6 #define BASE_TRACKED_OBJECTS_H_ 6 #define BASE_TRACKED_OBJECTS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <stack> 10 #include <stack>
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 742
743 // Sum of wallclock durations of all stopwatches that were directly nested in 743 // Sum of wallclock durations of all stopwatches that were directly nested in
744 // this one. 744 // this one.
745 int32 excluded_duration_ms_; 745 int32 excluded_duration_ms_;
746 746
747 // Stopwatch which was running on our thread when this stopwatch was started. 747 // Stopwatch which was running on our thread when this stopwatch was started.
748 // That preexisting stopwatch must be adjusted to the exclude the wallclock 748 // That preexisting stopwatch must be adjusted to the exclude the wallclock
749 // duration of this stopwatch. 749 // duration of this stopwatch.
750 TaskStopwatch* parent_; 750 TaskStopwatch* parent_;
751 751
752 #if DCHECK_IS_ON 752 #if DCHECK_IS_ON()
753 // State of the stopwatch. Stopwatch is first constructed in a created state 753 // State of the stopwatch. Stopwatch is first constructed in a created state
754 // state, then is optionally started/stopped, then destructed. 754 // state, then is optionally started/stopped, then destructed.
755 enum { CREATED, RUNNING, STOPPED } state_; 755 enum { CREATED, RUNNING, STOPPED } state_;
756 756
757 // Currently running stopwatch that is directly nested in this one, if such 757 // Currently running stopwatch that is directly nested in this one, if such
758 // stopwatch exists. NULL otherwise. 758 // stopwatch exists. NULL otherwise.
759 TaskStopwatch* child_; 759 TaskStopwatch* child_;
760 #endif 760 #endif
761 }; 761 };
762 762
(...skipping 21 matching lines...) Expand all
784 ~ProcessDataSnapshot(); 784 ~ProcessDataSnapshot();
785 785
786 std::vector<TaskSnapshot> tasks; 786 std::vector<TaskSnapshot> tasks;
787 std::vector<ParentChildPairSnapshot> descendants; 787 std::vector<ParentChildPairSnapshot> descendants;
788 int process_id; 788 int process_id;
789 }; 789 };
790 790
791 } // namespace tracked_objects 791 } // namespace tracked_objects
792 792
793 #endif // BASE_TRACKED_OBJECTS_H_ 793 #endif // BASE_TRACKED_OBJECTS_H_
OLDNEW
« no previous file with comments | « base/threading/worker_pool_win.cc ('k') | base/tracked_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698