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

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

Issue 1423803004: cc: Record UMA for swap to swap ack latency. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iltpFutile4
Patch Set: 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 | « no previous file | cc/scheduler/compositor_timing_history.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 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 #ifndef CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ 5 #ifndef CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_
6 #define CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ 6 #define CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/rolling_time_delta_history.h" 9 #include "cc/base/rolling_time_delta_history.h"
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void BeginMainFrameStarted(base::TimeTicks main_thread_start_time); 54 void BeginMainFrameStarted(base::TimeTicks main_thread_start_time);
55 void BeginMainFrameAborted(); 55 void BeginMainFrameAborted();
56 void DidCommit(); 56 void DidCommit();
57 void WillPrepareTiles(); 57 void WillPrepareTiles();
58 void DidPrepareTiles(); 58 void DidPrepareTiles();
59 void ReadyToActivate(); 59 void ReadyToActivate();
60 void WillActivate(); 60 void WillActivate();
61 void DidActivate(); 61 void DidActivate();
62 void WillDraw(); 62 void WillDraw();
63 void DidDraw(); 63 void DidDraw();
64 void DidSwapBuffers();
65 void DidSwapBuffersComplete();
66 void DidSwapBuffersReset();
64 67
65 protected: 68 protected:
66 static scoped_ptr<UMAReporter> CreateUMAReporter(UMACategory category); 69 static scoped_ptr<UMAReporter> CreateUMAReporter(UMACategory category);
67 virtual base::TimeTicks Now() const; 70 virtual base::TimeTicks Now() const;
68 71
69 bool enabled_; 72 bool enabled_;
70 73
71 RollingTimeDeltaHistory begin_main_frame_sent_to_commit_duration_history_; 74 RollingTimeDeltaHistory begin_main_frame_sent_to_commit_duration_history_;
72 RollingTimeDeltaHistory begin_main_frame_queue_duration_critical_history_; 75 RollingTimeDeltaHistory begin_main_frame_queue_duration_critical_history_;
73 RollingTimeDeltaHistory begin_main_frame_queue_duration_not_critical_history_; 76 RollingTimeDeltaHistory begin_main_frame_queue_duration_not_critical_history_;
74 RollingTimeDeltaHistory begin_main_frame_start_to_commit_duration_history_; 77 RollingTimeDeltaHistory begin_main_frame_start_to_commit_duration_history_;
75 RollingTimeDeltaHistory commit_to_ready_to_activate_duration_history_; 78 RollingTimeDeltaHistory commit_to_ready_to_activate_duration_history_;
76 RollingTimeDeltaHistory prepare_tiles_duration_history_; 79 RollingTimeDeltaHistory prepare_tiles_duration_history_;
77 RollingTimeDeltaHistory activate_duration_history_; 80 RollingTimeDeltaHistory activate_duration_history_;
78 RollingTimeDeltaHistory draw_duration_history_; 81 RollingTimeDeltaHistory draw_duration_history_;
79 82
80 bool begin_main_frame_on_critical_path_; 83 bool begin_main_frame_on_critical_path_;
81 base::TimeTicks begin_main_frame_sent_time_; 84 base::TimeTicks begin_main_frame_sent_time_;
82 base::TimeTicks begin_main_frame_start_time_; 85 base::TimeTicks begin_main_frame_start_time_;
83 base::TimeTicks commit_time_; 86 base::TimeTicks commit_time_;
84 base::TimeTicks start_prepare_tiles_time_; 87 base::TimeTicks start_prepare_tiles_time_;
85 base::TimeTicks start_activate_time_; 88 base::TimeTicks start_activate_time_;
86 base::TimeTicks start_draw_time_; 89 base::TimeTicks start_draw_time_;
90 base::TimeTicks swap_start_time_;
tdresser 2015/11/06 13:00:34 start_swap_time_, for consistency.
mithro-old 2015/11/07 04:13:15 Won't this fail if we have a max_pending_swaps > 1
87 91
88 scoped_ptr<UMAReporter> uma_reporter_; 92 scoped_ptr<UMAReporter> uma_reporter_;
89 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 93 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
90 94
91 private: 95 private:
92 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory); 96 DISALLOW_COPY_AND_ASSIGN(CompositorTimingHistory);
93 }; 97 };
94 98
95 } // namespace cc 99 } // namespace cc
96 100
97 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_ 101 #endif // CC_SCHEDULER_COMPOSITOR_TIMING_HISTORY_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/compositor_timing_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698