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

Unified Diff: webkit/glue/devtools/js/devtools_host_stub.js

Issue 115299: Add initial version of DevTools Profiler (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « webkit/glue/devtools/js/devtools.js ('k') | webkit/glue/devtools/js/inspector_controller_impl.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/devtools_host_stub.js
===================================================================
--- webkit/glue/devtools/js/devtools_host_stub.js (revision 15955)
+++ webkit/glue/devtools/js/devtools_host_stub.js (working copy)
@@ -20,6 +20,24 @@
RemoteDebuggerAgent.DidGetContextId(3);
};
+RemoteDebuggerAgentStub.prototype.StopProfiling = function() {
+};
+
+RemoteDebuggerAgentStub.prototype.StartProfiling = function() {
+};
+
+RemoteDebuggerAgentStub.prototype.GetLogLines = function(pos) {
+ if (pos < RemoteDebuggerAgentStub.ProfilerLogBuffer.length) {
+ setTimeout(function() {
+ RemoteDebuggerAgent.DidGetLogLines(
+ RemoteDebuggerAgentStub.ProfilerLogBuffer,
+ pos + RemoteDebuggerAgentStub.ProfilerLogBuffer.length);
+ },
+ 100);
+ } else {
+ setTimeout(function() { RemoteDebuggerAgent.DidGetLogLines('', pos); }, 100);
+ }
+};
/**
* @constructor
@@ -205,6 +223,20 @@
};
+RemoteDebuggerAgentStub.ProfilerLogBuffer =
+ 'code-creation,LazyCompile,0x1000,256,"test1 http://aaa.js:1"\n' +
+ 'code-creation,LazyCompile,0x2000,256,"test2 http://bbb.js:2"\n' +
+ 'code-creation,LazyCompile,0x3000,256,"test3 http://ccc.js:3"\n' +
+ 'tick,0x1010,0x0,3\n' +
+ 'tick,0x2020,0x0,3,0x1010\n' +
+ 'tick,0x2020,0x0,3,0x1010\n' +
+ 'tick,0x3010,0x0,3,0x2020, 0x1010\n' +
+ 'tick,0x2020,0x0,3,0x1010\n' +
+ 'tick,0x2030,0x0,3,0x2020, 0x1010\n' +
+ 'tick,0x2020,0x0,3,0x1010\n' +
+ 'tick,0x1010,0x0,3\n';
+
+
/**
* @constructor
*/
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | webkit/glue/devtools/js/inspector_controller_impl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698