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

Unified Diff: Source/devtools/front_end/sdk/PaintProfiler.js

Issue 319603007: DevTools: Add snapshot command log on the frontend. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Small fix. Created 6 years, 6 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 | « Source/devtools/front_end/layersPanel.css ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/PaintProfiler.js
diff --git a/Source/devtools/front_end/sdk/PaintProfiler.js b/Source/devtools/front_end/sdk/PaintProfiler.js
index 46ad15ecd3843b1893835d8b21c359a8d5e0a41f..573630b845e4a2ec550f499fa4a6cf7e96409e73 100644
--- a/Source/devtools/front_end/sdk/PaintProfiler.js
+++ b/Source/devtools/front_end/sdk/PaintProfiler.js
@@ -61,5 +61,14 @@ WebInspector.PaintProfilerSnapshot.prototype = {
{
var wrappedCallback = InspectorBackend.wrapClientCallback(callback, "LayerTreeAgent.profileSnapshot(): ");
LayerTreeAgent.profileSnapshot(this._id, 5, 1, wrappedCallback);
+ },
+
+ /**
+ * @param {function(!Array.<!Object>=)} callback
+ */
+ commandLog: function(callback)
+ {
+ var wrappedCallback = InspectorBackend.wrapClientCallback(callback, "LayerTreeAgent.snapshotCommandLog(): ");
+ LayerTreeAgent.snapshotCommandLog(this._id, wrappedCallback);
}
};
« no previous file with comments | « Source/devtools/front_end/layersPanel.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698