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

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

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 4 years, 12 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
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>
8 #include <stdint.h>
9
7 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
8 #include "base/trace_event/trace_event.h" 11 #include "base/trace_event/trace_event.h"
9 #include "cc/debug/rendering_stats_instrumentation.h" 12 #include "cc/debug/rendering_stats_instrumentation.h"
10 13
11 namespace cc { 14 namespace cc {
12 15
13 class CompositorTimingHistory::UMAReporter { 16 class CompositorTimingHistory::UMAReporter {
14 public: 17 public:
15 virtual ~UMAReporter() {} 18 virtual ~UMAReporter() {}
16 19
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const double kBeginMainFrameToCommitEstimationPercentile = 90.0; 62 const double kBeginMainFrameToCommitEstimationPercentile = 90.0;
60 const double kBeginMainFrameQueueDurationCriticalEstimationPercentile = 90.0; 63 const double kBeginMainFrameQueueDurationCriticalEstimationPercentile = 90.0;
61 const double kBeginMainFrameQueueDurationNotCriticalEstimationPercentile = 90.0; 64 const double kBeginMainFrameQueueDurationNotCriticalEstimationPercentile = 90.0;
62 const double kBeginMainFrameStartToCommitEstimationPercentile = 90.0; 65 const double kBeginMainFrameStartToCommitEstimationPercentile = 90.0;
63 const double kCommitToReadyToActivateEstimationPercentile = 90.0; 66 const double kCommitToReadyToActivateEstimationPercentile = 90.0;
64 const double kPrepareTilesEstimationPercentile = 90.0; 67 const double kPrepareTilesEstimationPercentile = 90.0;
65 const double kActivateEstimationPercentile = 90.0; 68 const double kActivateEstimationPercentile = 90.0;
66 const double kDrawEstimationPercentile = 90.0; 69 const double kDrawEstimationPercentile = 90.0;
67 70
68 const int kUmaDurationMinMicros = 1; 71 const int kUmaDurationMinMicros = 1;
69 const int64 kUmaDurationMaxMicros = 1 * base::Time::kMicrosecondsPerSecond; 72 const int64_t kUmaDurationMaxMicros = 1 * base::Time::kMicrosecondsPerSecond;
70 const size_t kUmaDurationBucketCount = 100; 73 const size_t kUmaDurationBucketCount = 100;
71 74
72 // Deprecated because they combine Browser and Renderer stats and have low 75 // Deprecated because they combine Browser and Renderer stats and have low
73 // precision. 76 // precision.
74 // TODO(brianderson): Remove. 77 // TODO(brianderson): Remove.
75 void DeprecatedDrawDurationUMA(base::TimeDelta duration, 78 void DeprecatedDrawDurationUMA(base::TimeDelta duration,
76 base::TimeDelta estimate) { 79 base::TimeDelta estimate) {
77 base::TimeDelta duration_overestimate; 80 base::TimeDelta duration_overestimate;
78 base::TimeDelta duration_underestimate; 81 base::TimeDelta duration_underestimate;
79 if (duration > estimate) 82 if (duration > estimate)
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
702 base::TimeDelta swap_to_ack_duration = Now() - swap_start_time_; 705 base::TimeDelta swap_to_ack_duration = Now() - swap_start_time_;
703 uma_reporter_->AddSwapToAckLatency(swap_to_ack_duration); 706 uma_reporter_->AddSwapToAckLatency(swap_to_ack_duration);
704 swap_start_time_ = base::TimeTicks(); 707 swap_start_time_ = base::TimeTicks();
705 } 708 }
706 709
707 void CompositorTimingHistory::DidSwapBuffersReset() { 710 void CompositorTimingHistory::DidSwapBuffersReset() {
708 swap_start_time_ = base::TimeTicks(); 711 swap_start_time_ = base::TimeTicks();
709 } 712 }
710 713
711 } // namespace cc 714 } // namespace cc
OLDNEW
« no previous file with comments | « cc/scheduler/compositor_timing_history.h ('k') | cc/scheduler/compositor_timing_history_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698