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

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

Issue 113950: Separate results of profiling sessions.... (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/debugger_agent.js ('k') | webkit/glue/devtools/js/profiler_processor.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 17069)
+++ webkit/glue/devtools/js/devtools_host_stub.js (working copy)
@@ -11,6 +11,7 @@
* @constructor
*/
RemoteDebuggerAgentStub = function() {
+ this.isProfiling_ = false;
};
RemoteDebuggerAgentStub.prototype.DebugBreak = function() {
@@ -21,14 +22,17 @@
};
RemoteDebuggerAgentStub.prototype.StopProfiling = function() {
+ this.isProfiling_ = false;
};
RemoteDebuggerAgentStub.prototype.StartProfiling = function() {
+ this.isProfiling_ = true;
};
RemoteDebuggerAgentStub.prototype.IsProfilingStarted = function() {
+ var self = this;
setTimeout(function() {
- RemoteDebuggerAgent.DidIsProfilingStarted(true);
+ RemoteDebuggerAgent.DidIsProfilingStarted(self.isProfiling_);
}, 100);
};
@@ -230,6 +234,7 @@
RemoteDebuggerAgentStub.ProfilerLogBuffer =
+ 'profiler,resume\n' +
'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' +
@@ -240,7 +245,8 @@
'tick,0x2020,0x0,3,0x1010\n' +
'tick,0x2030,0x0,3,0x2020, 0x1010\n' +
'tick,0x2020,0x0,3,0x1010\n' +
- 'tick,0x1010,0x0,3\n';
+ 'tick,0x1010,0x0,3\n' +
+ 'profiler,pause\n';
/**
« no previous file with comments | « webkit/glue/devtools/js/debugger_agent.js ('k') | webkit/glue/devtools/js/profiler_processor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698