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

Unified Diff: Source/bindings/v8/ScriptProfiler.cpp

Issue 196423009: Swich to the new CpuProfiler api that returns non-const CpuProfile (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 months 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 | « no previous file | Source/core/inspector/ScriptProfile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptProfiler.cpp
diff --git a/Source/bindings/v8/ScriptProfiler.cpp b/Source/bindings/v8/ScriptProfiler.cpp
index b10c8255a4ce8040a692c939322c72083c14f562..a39967e968a73b5a8beb120f7d8ee643d15ccd8b 100644
--- a/Source/bindings/v8/ScriptProfiler.cpp
+++ b/Source/bindings/v8/ScriptProfiler.cpp
@@ -69,7 +69,7 @@ void ScriptProfiler::start(const String& title)
if (!profiler)
return;
v8::HandleScope handleScope(isolate);
- profiler->StartCpuProfiling(v8String(isolate, title), true);
+ profiler->StartProfiling(v8String(isolate, title), true);
}
PassRefPtr<ScriptProfile> ScriptProfiler::stop(const String& title)
@@ -79,7 +79,7 @@ PassRefPtr<ScriptProfile> ScriptProfiler::stop(const String& title)
if (!profiler)
return nullptr;
v8::HandleScope handleScope(isolate);
- const v8::CpuProfile* profile = profiler->StopCpuProfiling(v8String(isolate, title));
+ v8::CpuProfile* profile = profiler->StopProfiling(v8String(isolate, title));
if (!profile)
return nullptr;
« no previous file with comments | « no previous file | Source/core/inspector/ScriptProfile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698