| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "cc/scheduler/compositor_timing_history.h" | 5 #include "cc/scheduler/compositor_timing_history.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 229 |
| 230 void AddBeginMainFrameQueueDurationNotCriticalDuration( | 230 void AddBeginMainFrameQueueDurationNotCriticalDuration( |
| 231 base::TimeDelta duration) override { | 231 base::TimeDelta duration) override { |
| 232 UMA_HISTOGRAM_CUSTOM_TIMES_DURATION( | 232 UMA_HISTOGRAM_CUSTOM_TIMES_DURATION( |
| 233 "Scheduling.Browser.BeginMainFrameQueueDurationNotCritical", duration); | 233 "Scheduling.Browser.BeginMainFrameQueueDurationNotCritical", duration); |
| 234 } | 234 } |
| 235 | 235 |
| 236 void AddBeginMainFrameStartToCommitDuration( | 236 void AddBeginMainFrameStartToCommitDuration( |
| 237 base::TimeDelta duration) override { | 237 base::TimeDelta duration) override { |
| 238 UMA_HISTOGRAM_CUSTOM_TIMES_DURATION( | 238 UMA_HISTOGRAM_CUSTOM_TIMES_DURATION( |
| 239 "Scheduling.Browser.BeginMainFrameStartToCommit", duration); | 239 "Scheduling.Browser.BeginMainFrameStartToCommitDuration", duration); |
| 240 } | 240 } |
| 241 | 241 |
| 242 void AddCommitToReadyToActivateDuration(base::TimeDelta duration) override { | 242 void AddCommitToReadyToActivateDuration(base::TimeDelta duration) override { |
| 243 UMA_HISTOGRAM_CUSTOM_TIMES_DURATION( | 243 UMA_HISTOGRAM_CUSTOM_TIMES_DURATION( |
| 244 "Scheduling.Browser.CommitToReadyToActivateDuration", duration); | 244 "Scheduling.Browser.CommitToReadyToActivateDuration", duration); |
| 245 } | 245 } |
| 246 | 246 |
| 247 void AddPrepareTilesDuration(base::TimeDelta duration) override { | 247 void AddPrepareTilesDuration(base::TimeDelta duration) override { |
| 248 UMA_HISTOGRAM_CUSTOM_TIMES_DURATION( | 248 UMA_HISTOGRAM_CUSTOM_TIMES_DURATION( |
| 249 "Scheduling.Browser.PrepareTilesDuration", duration); | 249 "Scheduling.Browser.PrepareTilesDuration", duration); |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 } | 700 } |
| 701 | 701 |
| 702 void CompositorTimingHistory::DidSwapBuffersComplete() { | 702 void CompositorTimingHistory::DidSwapBuffersComplete() { |
| 703 DCHECK_NE(base::TimeTicks(), swap_start_time_); | 703 DCHECK_NE(base::TimeTicks(), swap_start_time_); |
| 704 base::TimeDelta swap_to_ack_duration = Now() - swap_start_time_; | 704 base::TimeDelta swap_to_ack_duration = Now() - swap_start_time_; |
| 705 uma_reporter_->AddSwapToAckLatency(swap_to_ack_duration); | 705 uma_reporter_->AddSwapToAckLatency(swap_to_ack_duration); |
| 706 swap_start_time_ = base::TimeTicks(); | 706 swap_start_time_ = base::TimeTicks(); |
| 707 } | 707 } |
| 708 | 708 |
| 709 } // namespace cc | 709 } // namespace cc |
| OLD | NEW |