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

Side by Side Diff: webkit/glue/devtools/profiler_agent_impl.cc

Issue 460018: DevTools: make possible profiling of scripts doing heavy calculations. (Closed)
Patch Set: Comments addressed Created 11 years 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 unified diff | Download patch
« no previous file with comments | « webkit/glue/devtools/profiler_agent_impl.h ('k') | webkit/glue/webdevtoolsagent_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « webkit/glue/devtools/profiler_agent_impl.h ('k') | webkit/glue/webdevtoolsagent_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698