| Index: test/cctest/test-profile-generator.cc
|
| diff --git a/test/cctest/test-profile-generator.cc b/test/cctest/test-profile-generator.cc
|
| index 864229ee305e0c327b40209a39b059904f5719c9..56b1788a85132140bfeb0d7bea36479f0f0deb36 100644
|
| --- a/test/cctest/test-profile-generator.cc
|
| +++ b/test/cctest/test-profile-generator.cc
|
| @@ -830,20 +830,22 @@ v8::Handle<v8::FunctionTemplate> ProfilerExtension::GetNativeFunction(
|
|
|
| v8::Handle<v8::Value> ProfilerExtension::StartProfiling(
|
| const v8::Arguments& args) {
|
| + v8::CpuProfiler* cpu_profiler = args.GetIsolate()->GetCpuProfiler();
|
| if (args.Length() > 0)
|
| - v8::CpuProfiler::StartProfiling(args[0].As<v8::String>());
|
| + cpu_profiler->StartCpuProfiling(args[0].As<v8::String>());
|
| else
|
| - v8::CpuProfiler::StartProfiling(v8::String::New(""));
|
| + cpu_profiler->StartCpuProfiling(v8::String::New(""));
|
| return v8::Undefined();
|
| }
|
|
|
|
|
| v8::Handle<v8::Value> ProfilerExtension::StopProfiling(
|
| const v8::Arguments& args) {
|
| + v8::CpuProfiler* cpu_profiler = args.GetIsolate()->GetCpuProfiler();
|
| if (args.Length() > 0)
|
| - v8::CpuProfiler::StopProfiling(args[0].As<v8::String>());
|
| + cpu_profiler->StopCpuProfiling(args[0].As<v8::String>());
|
| else
|
| - v8::CpuProfiler::StopProfiling(v8::String::New(""));
|
| + cpu_profiler->StopCpuProfiling(v8::String::New(""));
|
| return v8::Undefined();
|
| }
|
|
|
|
|