| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |