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

Unified Diff: cc/debug/devtools_instrumentation.h

Issue 144463016: cc: add more devtools instrumentation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: capitalized instrumentation functions name Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/devtools_instrumentation.h
diff --git a/cc/debug/devtools_instrumentation.h b/cc/debug/devtools_instrumentation.h
index 3caa81ea6d545f06efd2c8550fbd9ea55f26bdb7..8d19a4b5458330abab9af3605c54926d3cfaead7 100644
--- a/cc/debug/devtools_instrumentation.h
+++ b/cc/debug/devtools_instrumentation.h
@@ -20,6 +20,8 @@ const char kPixelRefId[] = "pixelRefId";
const char kImageDecodeTask[] = "ImageDecodeTask";
const char kBeginFrame[] = "BeginFrame";
const char kActivateLayerTree[] = "ActivateLayerTree";
+const char kRequestMainThreadFrame[] = "RequestMainThreadFrame";
+const char kDrawFrame[] = "DrawFrame";
} // namespace internal
const char kRasterTask[] = "RasterTask";
@@ -86,7 +88,7 @@ struct ScopedLayerObjectTracker
DISALLOW_COPY_AND_ASSIGN(ScopedLayerObjectTracker);
};
-inline void didActivateLayerTree(int layer_tree_host_id, int frame_id) {
+inline void DidActivateLayerTree(int layer_tree_host_id, int frame_id) {
TRACE_EVENT_INSTANT2(internal::kCategory,
internal::kActivateLayerTree,
TRACE_EVENT_SCOPE_THREAD,
@@ -94,13 +96,29 @@ inline void didActivateLayerTree(int layer_tree_host_id, int frame_id) {
internal::kFrameId, frame_id);
}
-inline void didBeginFrame(int layer_tree_host_id) {
+inline void DidBeginFrame(int layer_tree_host_id) {
TRACE_EVENT_INSTANT1(internal::kCategory,
internal::kBeginFrame,
TRACE_EVENT_SCOPE_THREAD,
internal::kLayerTreeId, layer_tree_host_id);
}
+inline void DidDrawFrame(int layer_tree_host_id) {
+ TRACE_EVENT_INSTANT1(internal::kCategory,
+ internal::kDrawFrame,
+ TRACE_EVENT_SCOPE_THREAD,
+ internal::kLayerTreeId,
+ layer_tree_host_id);
+}
+
+inline void DidRequestMainThreadFrame(int layer_tree_host_id) {
+ TRACE_EVENT_INSTANT1(internal::kCategory,
+ internal::kRequestMainThreadFrame,
+ TRACE_EVENT_SCOPE_THREAD,
+ internal::kLayerTreeId,
+ layer_tree_host_id);
+}
+
} // namespace devtools_instrumentation
} // namespace cc
« no previous file with comments | « no previous file | cc/scheduler/scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698