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

Side by Side Diff: components/scheduler/child/idle_helper.h

Issue 1424703003: Kills TraceTicks, which was functionally the same as TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed win compile error. Created 5 years, 1 month 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 | « cc/scheduler/begin_frame_tracker.cc ('k') | components/scheduler/child/idle_helper.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_SCHEDULER_CHILD_IDLE_HELPER_H_ 5 #ifndef COMPONENTS_SCHEDULER_CHILD_IDLE_HELPER_H_
6 #define COMPONENTS_SCHEDULER_CHILD_IDLE_HELPER_H_ 6 #define COMPONENTS_SCHEDULER_CHILD_IDLE_HELPER_H_
7 7
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "components/scheduler/base/cancelable_closure_holder.h" 9 #include "components/scheduler/base/cancelable_closure_holder.h"
10 #include "components/scheduler/base/task_queue_selector.h" 10 #include "components/scheduler/base/task_queue_selector.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 IdlePeriodState idle_period_state() const; 144 IdlePeriodState idle_period_state() const;
145 base::TimeTicks idle_period_deadline() const; 145 base::TimeTicks idle_period_deadline() const;
146 146
147 void TraceIdleIdleTaskStart(); 147 void TraceIdleIdleTaskStart();
148 void TraceIdleIdleTaskEnd(); 148 void TraceIdleIdleTaskEnd();
149 149
150 private: 150 private:
151 void TraceEventIdlePeriodStateChange(IdlePeriodState new_state, 151 void TraceEventIdlePeriodStateChange(IdlePeriodState new_state,
152 bool new_running_idle_task, 152 bool new_running_idle_task,
153 base::TraceTicks new_deadline, 153 base::TimeTicks new_deadline,
154 base::TraceTicks optional_now); 154 base::TimeTicks optional_now);
155 155
156 SchedulerHelper* helper_; // NOT OWNED 156 SchedulerHelper* helper_; // NOT OWNED
157 Delegate* delegate_; // NOT OWNED 157 Delegate* delegate_; // NOT OWNED
158 158
159 IdlePeriodState idle_period_state_; 159 IdlePeriodState idle_period_state_;
160 base::TimeTicks idle_period_deadline_; 160 base::TimeTicks idle_period_deadline_;
161 161
162 base::TraceTicks idle_period_deadline_for_tracing_; 162 base::TimeTicks last_idle_task_trace_time_;
163 base::TraceTicks last_idle_task_trace_time_;
164 bool idle_period_trace_event_started_; 163 bool idle_period_trace_event_started_;
165 bool running_idle_task_for_tracing_; 164 bool running_idle_task_for_tracing_;
166 const char* tracing_category_; 165 const char* tracing_category_;
167 const char* disabled_by_default_tracing_category_; 166 const char* disabled_by_default_tracing_category_;
168 const char* idle_period_tracing_name_; 167 const char* idle_period_tracing_name_;
169 168
170 DISALLOW_COPY_AND_ASSIGN(State); 169 DISALLOW_COPY_AND_ASSIGN(State);
171 }; 170 };
172 171
173 // The minimum duration of an idle period. 172 // The minimum duration of an idle period.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 211
213 base::WeakPtr<IdleHelper> weak_idle_helper_ptr_; 212 base::WeakPtr<IdleHelper> weak_idle_helper_ptr_;
214 base::WeakPtrFactory<IdleHelper> weak_factory_; 213 base::WeakPtrFactory<IdleHelper> weak_factory_;
215 214
216 DISALLOW_COPY_AND_ASSIGN(IdleHelper); 215 DISALLOW_COPY_AND_ASSIGN(IdleHelper);
217 }; 216 };
218 217
219 } // namespace scheduler 218 } // namespace scheduler
220 219
221 #endif // COMPONENTS_SCHEDULER_CHILD_IDLE_HELPER_H_ 220 #endif // COMPONENTS_SCHEDULER_CHILD_IDLE_HELPER_H_
OLDNEW
« no previous file with comments | « cc/scheduler/begin_frame_tracker.cc ('k') | components/scheduler/child/idle_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698