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

Side by Side Diff: cc/scheduler/compositor_timing_history.cc

Issue 2108943002: cc: Fix UMA typo for BeginMainFrameStartToCommitDuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698