| Index: src/profiler/cpu-profiler.cc
|
| diff --git a/src/profiler/cpu-profiler.cc b/src/profiler/cpu-profiler.cc
|
| index b6c7945797bc702cb647c5de58195f90ff6ae967..940d39e176d33e8460611298bdff7ed2136b3719 100644
|
| --- a/src/profiler/cpu-profiler.cc
|
| +++ b/src/profiler/cpu-profiler.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "src/profiler/cpu-profiler.h"
|
|
|
| +#include "include/v8-sampler.h"
|
| #include "src/debug/debug.h"
|
| #include "src/deoptimizer.h"
|
| #include "src/frames-inl.h"
|
| @@ -21,7 +22,7 @@ static const int kProfilerStackSize = 64 * KB;
|
|
|
|
|
| ProfilerEventsProcessor::ProfilerEventsProcessor(ProfileGenerator* generator,
|
| - Sampler* sampler,
|
| + V8Sampler* sampler,
|
| base::TimeDelta period)
|
| : Thread(Thread::Options("v8:ProfEvntProc", kProfilerStackSize)),
|
| generator_(generator),
|
| @@ -458,7 +459,8 @@ void CpuProfiler::StartProcessorIfNotStarted() {
|
| saved_is_logging_ = logger->is_logging_;
|
| logger->is_logging_ = false;
|
| generator_ = new ProfileGenerator(profiles_);
|
| - Sampler* sampler = logger->sampler();
|
| + // Sampler* sampler = logger->sampler();
|
| + V8Sampler* sampler = logger->sampler();
|
| processor_ = new ProfilerEventsProcessor(
|
| generator_, sampler, sampling_interval_);
|
| is_profiling_ = true;
|
| @@ -504,7 +506,8 @@ void CpuProfiler::StopProcessorIfLastProfile(const char* title) {
|
|
|
| void CpuProfiler::StopProcessor() {
|
| Logger* logger = isolate_->logger();
|
| - Sampler* sampler = reinterpret_cast<Sampler*>(logger->ticker_);
|
| + // Sampler* sampler = reinterpret_cast<Sampler*>(logger->ticker_);
|
| + V8Sampler* sampler = reinterpret_cast<V8Sampler*>(logger->ticker_);
|
| is_profiling_ = false;
|
| processor_->StopSynchronously();
|
| delete processor_;
|
|
|