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

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

Issue 63443003: cc: Combine analysis and raster (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove analysis time from rendering stats Created 6 years, 11 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 | « 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 record_rendering_stats_ = record_rendering_stats; 45 record_rendering_stats_ = record_rendering_stats;
46 } 46 }
47 47
48 base::TimeTicks StartRecording() const; 48 base::TimeTicks StartRecording() const;
49 base::TimeDelta EndRecording(base::TimeTicks start_time) const; 49 base::TimeDelta EndRecording(base::TimeTicks start_time) const;
50 50
51 void IncrementFrameCount(int64 count, bool main_thread); 51 void IncrementFrameCount(int64 count, bool main_thread);
52 void AddPaint(base::TimeDelta duration, int64 pixels); 52 void AddPaint(base::TimeDelta duration, int64 pixels);
53 void AddRecord(base::TimeDelta duration, int64 pixels); 53 void AddRecord(base::TimeDelta duration, int64 pixels);
54 void AddRaster(base::TimeDelta duration, int64 pixels); 54 void AddRaster(base::TimeDelta duration, int64 pixels);
55 void AddAnalysis(base::TimeDelta duration, int64 pixels);
56 55
57 protected: 56 protected:
58 RenderingStatsInstrumentation(); 57 RenderingStatsInstrumentation();
59 58
60 private: 59 private:
61 // TODO(ernstm): rename to *_thread_rendering_stats_* 60 // TODO(ernstm): rename to *_thread_rendering_stats_*
62 MainThreadRenderingStats main_stats_; 61 MainThreadRenderingStats main_stats_;
63 MainThreadRenderingStats main_stats_accu_; 62 MainThreadRenderingStats main_stats_accu_;
64 ImplThreadRenderingStats impl_stats_; 63 ImplThreadRenderingStats impl_stats_;
65 ImplThreadRenderingStats impl_stats_accu_; 64 ImplThreadRenderingStats impl_stats_accu_;
66 65
67 bool record_rendering_stats_; 66 bool record_rendering_stats_;
68 67
69 base::Lock lock_; 68 base::Lock lock_;
70 69
71 DISALLOW_COPY_AND_ASSIGN(RenderingStatsInstrumentation); 70 DISALLOW_COPY_AND_ASSIGN(RenderingStatsInstrumentation);
72 }; 71 };
73 72
74 } // namespace cc 73 } // namespace cc
75 74
76 #endif // CC_DEBUG_RENDERING_STATS_INSTRUMENTATION_H_ 75 #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