| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "config.h" | |
| 6 | |
| 7 #undef LOG | |
| 8 | |
| 9 #include "webkit/glue/devtools/profiler_agent_impl.h" | |
| 10 | |
| 11 void ProfilerAgentImpl::GetActiveProfilerModules() { | |
| 12 delegate_->DidGetActiveProfilerModules( | |
| 13 v8::V8::GetActiveProfilerModules()); | |
| 14 } | |
| 15 | |
| 16 void ProfilerAgentImpl::GetLogLines(int position) { | |
| 17 static char buffer[65536]; | |
| 18 const int read_size = v8::V8::GetLogLines( | |
| 19 position, buffer, sizeof(buffer) - 1); | |
| 20 buffer[read_size] = '\0'; | |
| 21 position += read_size; | |
| 22 delegate_->DidGetLogLines(position, buffer); | |
| 23 } | |
| OLD | NEW |