summaryrefslogtreecommitdiffstats
path: root/webkit/glue/devtools/debugger_agent_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/devtools/debugger_agent_impl.cc')
-rw-r--r--webkit/glue/devtools/debugger_agent_impl.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/webkit/glue/devtools/debugger_agent_impl.cc b/webkit/glue/devtools/debugger_agent_impl.cc
index 7dabb61..3d18bb5 100644
--- a/webkit/glue/devtools/debugger_agent_impl.cc
+++ b/webkit/glue/devtools/debugger_agent_impl.cc
@@ -58,11 +58,31 @@ void DebuggerAgentImpl::GetContextId() {
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,