| 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,
|
|
|