summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/v8/ScriptProfiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/v8/ScriptProfiler.cpp')
-rw-r--r--WebCore/bindings/v8/ScriptProfiler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/WebCore/bindings/v8/ScriptProfiler.cpp b/WebCore/bindings/v8/ScriptProfiler.cpp
index 4891892..9213774 100644
--- a/WebCore/bindings/v8/ScriptProfiler.cpp
+++ b/WebCore/bindings/v8/ScriptProfiler.cpp
@@ -59,4 +59,14 @@ void ScriptProfiler::takeHeapSnapshot()
| v8::PROFILER_MODULE_JS_CONSTRUCTORS);
}
+long ScriptProfiler::getProfilerLogLines(long position, String* data)
+{
+ static char buffer[65536];
+ const int readSize = v8::V8::GetLogLines(position, buffer, sizeof(buffer) - 1);
+ buffer[readSize] = '\0';
+ position += readSize;
+ *data = buffer;
+ return position;
+}
+
} // namespace WebCore