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

Unified Diff: webkit/glue/devtools/debugger_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/devtools/debugger_agent_impl.h ('k') | webkit/glue/devtools/js/debugger_agent.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/debugger_agent_impl.cc
diff --git a/webkit/glue/devtools/debugger_agent_impl.cc b/webkit/glue/devtools/debugger_agent_impl.cc
index a354cde9735f37d5501ff7c3bbad0dd5f93818ef..fa0775e1ea947f5ce8a5c046e8f1b64d47400861 100644
--- a/webkit/glue/devtools/debugger_agent_impl.cc
+++ b/webkit/glue/devtools/debugger_agent_impl.cc
@@ -44,7 +44,6 @@ DebuggerAgentImpl::DebuggerAgentImpl(
: web_view_impl_(web_view_impl),
delegate_(delegate),
webdevtools_agent_(webdevtools_agent),
- profiler_log_position_(0),
auto_continue_on_exception_(false) {
DebuggerAgentManager::DebugAttach(this);
}
@@ -57,31 +56,6 @@ void DebuggerAgentImpl::GetContextId() {
delegate_->SetContextId(webdevtools_agent_->host_id());
}
-void DebuggerAgentImpl::StartProfiling(int flags) {
- v8::HandleScope scope;
- WebCore::Frame* frame = GetPage()->mainFrame();
- ASSERT(V8Proxy::retrieve(GetPage()->mainFrame())->isContextInitialized());
- v8::Context::Scope context_scope(V8Proxy::context(frame));
- v8::V8::ResumeProfilerEx(flags);
-}
-
-void DebuggerAgentImpl::StopProfiling(int flags) {
- v8::V8::PauseProfilerEx(flags);
-}
-
-void DebuggerAgentImpl::GetActiveProfilerModules() {
- delegate_->DidGetActiveProfilerModules(v8::V8::GetActiveProfilerModules());
-}
-
-void DebuggerAgentImpl::GetNextLogLines() {
- static char buffer[65536];
- int read_size = v8::V8::GetLogLines(
- profiler_log_position_, buffer, sizeof(buffer) - 1);
- profiler_log_position_ += read_size;
- buffer[read_size] = '\0';
- delegate_->DidGetNextLogLines(buffer);
-}
-
void DebuggerAgentImpl::DebuggerOutput(const String& command) {
delegate_->DebuggerOutput(command);
webdevtools_agent_->ForceRepaint();
« no previous file with comments | « webkit/glue/devtools/debugger_agent_impl.h ('k') | webkit/glue/devtools/js/debugger_agent.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698