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

Unified Diff: webkit/glue/devtools/debugger_agent_impl.cc

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/debugger_agent_impl.h ('k') | webkit/glue/devtools/js/debugger_agent.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/debugger_agent_impl.cc
===================================================================
--- webkit/glue/devtools/debugger_agent_impl.cc (revision 15955)
+++ webkit/glue/devtools/debugger_agent_impl.cc (working copy)
@@ -58,11 +58,31 @@
delegate_->DidGetContextId(webdevtools_agent_->host_id());
}
+void DebuggerAgentImpl::StartProfiling() {
+ v8::V8::ResumeProfiler();
+}
+
+void DebuggerAgentImpl::StopProfiling() {
+ v8::V8::PauseProfiler();
+}
+
+void DebuggerAgentImpl::GetLogLines(int position) {
+ static char buffer[65536];
+ int read_size = v8::V8::GetLogLines(position, buffer, sizeof(buffer) - 1);
+ buffer[read_size] = '\0';
+ DidGetLogLines(buffer, position + read_size);
+}
+
void DebuggerAgentImpl::DebuggerOutput(const std::string& command) {
delegate_->DebuggerOutput(command);
webdevtools_agent_->ForceRepaint();
}
+void DebuggerAgentImpl::DidGetLogLines(
+ const std::string& log, int new_position) {
+ delegate_->DidGetLogLines(log, new_position);
+}
+
// static
void DebuggerAgentImpl::ResetUtilityContext(
Document* document,
« no previous file with comments | « webkit/glue/devtools/debugger_agent_impl.h ('k') | webkit/glue/devtools/js/debugger_agent.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698