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

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

Issue 16213002: Add telemetry to track the time an event spent waiting for the main thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor fixes Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/debug/rendering_stats.cc » ('j') | content/renderer/gpu/input_event_filter.cc » ('J')
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 19 matching lines...) Expand all
30 int64 num_layers_drawn; 30 int64 num_layers_drawn;
31 int64 num_missing_tiles; 31 int64 num_missing_tiles;
32 int64 total_deferred_image_decode_count; 32 int64 total_deferred_image_decode_count;
33 int64 total_deferred_image_cache_hit_count; 33 int64 total_deferred_image_cache_hit_count;
34 int64 total_image_gathering_count; 34 int64 total_image_gathering_count;
35 int64 total_tiles_analyzed; 35 int64 total_tiles_analyzed;
36 int64 solid_color_tiles_analyzed; 36 int64 solid_color_tiles_analyzed;
37 base::TimeDelta total_deferred_image_decode_time; 37 base::TimeDelta total_deferred_image_decode_time;
38 base::TimeDelta total_image_gathering_time; 38 base::TimeDelta total_image_gathering_time;
39 base::TimeDelta total_tile_analysis_time; 39 base::TimeDelta total_tile_analysis_time;
40 int64 total_impl_thread_to_main_thread_count;
nduca 2013/07/08 20:58:32 these variable names make no sense. impl_thread_t
41 base::TimeDelta total_impl_thread_to_main_thread_time;
40 // Note: when adding new members, please remember to update EnumerateFields 42 // Note: when adding new members, please remember to update EnumerateFields
41 // and Add in rendering_stats.cc. 43 // and Add in rendering_stats.cc.
42 44
43 RenderingStats(); 45 RenderingStats();
44 46
45 // In conjunction with EnumerateFields, this allows the embedder to 47 // In conjunction with EnumerateFields, this allows the embedder to
46 // enumerate the values in this structure without 48 // enumerate the values in this structure without
47 // having to embed references to its specific member variables. This 49 // having to embed references to its specific member variables. This
48 // simplifies the addition of new fields to this type. 50 // simplifies the addition of new fields to this type.
49 class Enumerator { 51 class Enumerator {
(...skipping 11 matching lines...) Expand all
61 // Outputs the fields in this structure to the provided enumerator. 63 // Outputs the fields in this structure to the provided enumerator.
62 void EnumerateFields(Enumerator* enumerator) const; 64 void EnumerateFields(Enumerator* enumerator) const;
63 65
64 // Add fields of |other| to the fields in this structure. 66 // Add fields of |other| to the fields in this structure.
65 void Add(const RenderingStats& other); 67 void Add(const RenderingStats& other);
66 }; 68 };
67 69
68 } // namespace cc 70 } // namespace cc
69 71
70 #endif // CC_DEBUG_RENDERING_STATS_H_ 72 #endif // CC_DEBUG_RENDERING_STATS_H_
OLDNEW
« no previous file with comments | « no previous file | cc/debug/rendering_stats.cc » ('j') | content/renderer/gpu/input_event_filter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698