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

Side by Side Diff: cc/debug/rendering_stats_instrumentation.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 | « cc/debug/rendering_stats.cc ('k') | cc/debug/rendering_stats_instrumentation.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_INSTRUMENTATION_H_ 5 #ifndef CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_
6 #define CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_ 6 #define CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "cc/debug/rendering_stats.h" 10 #include "cc/debug/rendering_stats.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 base::TimeTicks StartRecording() const; 57 base::TimeTicks StartRecording() const;
58 base::TimeDelta EndRecording(base::TimeTicks start_time) const; 58 base::TimeDelta EndRecording(base::TimeTicks start_time) const;
59 59
60 void IncrementAnimationFrameCount(); 60 void IncrementAnimationFrameCount();
61 void IncrementScreenFrameCount(int64 count, bool main_thread); 61 void IncrementScreenFrameCount(int64 count, bool main_thread);
62 void IncrementDroppedFrameCount(int64 count); 62 void IncrementDroppedFrameCount(int64 count);
63 63
64 void AddCommit(base::TimeDelta duration); 64 void AddCommit(base::TimeDelta duration);
65 void AddPaint(base::TimeDelta duration, int64 pixels); 65 void AddPaint(base::TimeDelta duration, int64 pixels);
66 void AddRecord(base::TimeDelta duration, int64 pixels); 66 void AddRecord(base::TimeDelta duration,
67 base::TimeDelta best_duration,
68 int64 pixels);
67 void AddRaster(base::TimeDelta total_duraction, 69 void AddRaster(base::TimeDelta total_duraction,
68 base::TimeDelta best_duration, 70 base::TimeDelta best_duration,
69 int64 pixels, 71 int64 pixels,
70 bool is_in_pending_tree_now_bin); 72 bool is_in_pending_tree_now_bin);
71 73
72 void IncrementImplThreadScrolls(); 74 void IncrementImplThreadScrolls();
73 void IncrementMainThreadScrolls(); 75 void IncrementMainThreadScrolls();
74 76
75 void AddLayersDrawn(int64 amount); 77 void AddLayersDrawn(int64 amount);
76 void AddMissingTiles(int64 amount); 78 void AddMissingTiles(int64 amount);
(...skipping 17 matching lines...) Expand all
94 bool record_rendering_stats_; 96 bool record_rendering_stats_;
95 97
96 base::Lock lock_; 98 base::Lock lock_;
97 99
98 DISALLOW_COPY_AND_ASSIGN(RenderingStatsInstrumentation); 100 DISALLOW_COPY_AND_ASSIGN(RenderingStatsInstrumentation);
99 }; 101 };
100 102
101 } // namespace cc 103 } // namespace cc
102 104
103 #endif // CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_ 105 #endif // CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_
OLDNEW
« no previous file with comments | « cc/debug/rendering_stats.cc ('k') | cc/debug/rendering_stats_instrumentation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698