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

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

Issue 683863003: Remove some of the instrumentation plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with latest Created 6 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 | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | 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 <list> 8 #include <list>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() 48 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData()
49 const; 49 const;
50 void Add(const MainThreadRenderingStats& other); 50 void Add(const MainThreadRenderingStats& other);
51 }; 51 };
52 52
53 struct CC_EXPORT ImplThreadRenderingStats { 53 struct CC_EXPORT ImplThreadRenderingStats {
54 // Note: when adding new members, please remember to update Add in 54 // Note: when adding new members, please remember to update Add in
55 // rendering_stats.cc. 55 // rendering_stats.cc.
56 56
57 int64 frame_count; 57 int64 frame_count;
58 base::TimeDelta rasterize_time;
59 base::TimeDelta analysis_time;
60 int64 rasterized_pixel_count;
61 int64 visible_content_area; 58 int64 visible_content_area;
62 int64 approximated_visible_content_area; 59 int64 approximated_visible_content_area;
63 60
64 TimeDeltaList draw_duration; 61 TimeDeltaList draw_duration;
65 TimeDeltaList draw_duration_estimate; 62 TimeDeltaList draw_duration_estimate;
66 TimeDeltaList begin_main_frame_to_commit_duration; 63 TimeDeltaList begin_main_frame_to_commit_duration;
67 TimeDeltaList begin_main_frame_to_commit_duration_estimate; 64 TimeDeltaList begin_main_frame_to_commit_duration_estimate;
68 TimeDeltaList commit_to_activate_duration; 65 TimeDeltaList commit_to_activate_duration;
69 TimeDeltaList commit_to_activate_duration_estimate; 66 TimeDeltaList commit_to_activate_duration_estimate;
70 67
71 ImplThreadRenderingStats(); 68 ImplThreadRenderingStats();
72 ~ImplThreadRenderingStats(); 69 ~ImplThreadRenderingStats();
73 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData() 70 scoped_refptr<base::debug::ConvertableToTraceFormat> AsTraceableData()
74 const; 71 const;
75 void Add(const ImplThreadRenderingStats& other); 72 void Add(const ImplThreadRenderingStats& other);
76 }; 73 };
77 74
78 MainThreadRenderingStats main_stats; 75 MainThreadRenderingStats main_stats;
79 ImplThreadRenderingStats impl_stats; 76 ImplThreadRenderingStats impl_stats;
80 77
81 // Add fields of |other| to the fields in this structure. 78 // Add fields of |other| to the fields in this structure.
82 void Add(const RenderingStats& other); 79 void Add(const RenderingStats& other);
83 }; 80 };
84 81
85 } // namespace cc 82 } // namespace cc
86 83
87 #endif // CC_DEBUG_RENDERING_STATS_H_ 84 #endif // CC_DEBUG_RENDERING_STATS_H_
OLDNEW
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/debug/rendering_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698