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

Side by Side Diff: cc/debug/rendering_stats.h

Issue 25284005: cc: Add best_record_time to rendering stats. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 2 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 | cc/debug/rendering_stats.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_DEBUG_RENDERING_STATS_H_ 5 #ifndef CC_DEBUG_RENDERING_STATS_H_
6 #define CC_DEBUG_RENDERING_STATS_H_ 6 #define CC_DEBUG_RENDERING_STATS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 18 matching lines...) Expand all
29 }; 29 };
30 30
31 struct CC_EXPORT MainThreadRenderingStats { 31 struct CC_EXPORT MainThreadRenderingStats {
32 // Note: when adding new members, please remember to update EnumerateFields 32 // Note: when adding new members, please remember to update EnumerateFields
33 // and Add in rendering_stats.cc. 33 // and Add in rendering_stats.cc.
34 34
35 int64 animation_frame_count; 35 int64 animation_frame_count;
36 int64 screen_frame_count; 36 int64 screen_frame_count;
37 base::TimeDelta paint_time; 37 base::TimeDelta paint_time;
38 base::TimeDelta record_time; 38 base::TimeDelta record_time;
39 base::TimeDelta best_record_time;
39 base::TimeDelta commit_time; 40 base::TimeDelta commit_time;
40 int64 commit_count; 41 int64 commit_count;
41 int64 painted_pixel_count; 42 int64 painted_pixel_count;
42 int64 recorded_pixel_count; 43 int64 recorded_pixel_count;
43 int64 image_gathering_count; 44 int64 image_gathering_count;
44 base::TimeDelta image_gathering_time; 45 base::TimeDelta image_gathering_time;
45 46
46 MainThreadRenderingStats(); 47 MainThreadRenderingStats();
47 void IssueTraceEvent() const; 48 void IssueTraceEvent() const;
48 scoped_ptr<base::debug::ConvertableToTraceFormat> AsTraceableData() const; 49 scoped_ptr<base::debug::ConvertableToTraceFormat> AsTraceableData() const;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Outputs the fields in this structure to the provided enumerator. 86 // Outputs the fields in this structure to the provided enumerator.
86 void EnumerateFields(Enumerator* enumerator) const; 87 void EnumerateFields(Enumerator* enumerator) const;
87 88
88 // Add fields of |other| to the fields in this structure. 89 // Add fields of |other| to the fields in this structure.
89 void Add(const RenderingStats& other); 90 void Add(const RenderingStats& other);
90 }; 91 };
91 92
92 } // namespace cc 93 } // namespace cc
93 94
94 #endif // CC_DEBUG_RENDERING_STATS_H_ 95 #endif // CC_DEBUG_RENDERING_STATS_H_
OLDNEW
« no previous file with comments | « no previous file | cc/debug/rendering_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698