| Index: src/profiler/cpu-profiler.h
|
| diff --git a/src/profiler/cpu-profiler.h b/src/profiler/cpu-profiler.h
|
| index d354aeb0469584ee27bdf94429461e262d51fd8e..c2fd4095bf700ede8ddaa57db41b41c469640156 100644
|
| --- a/src/profiler/cpu-profiler.h
|
| +++ b/src/profiler/cpu-profiler.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include <memory>
|
|
|
| +#include "include/v8-profiler.h"
|
| #include "src/allocation.h"
|
| #include "src/base/atomic-utils.h"
|
| #include "src/base/atomicops.h"
|
| @@ -17,7 +18,6 @@
|
| #include "src/locked-queue.h"
|
| #include "src/profiler/circular-queue.h"
|
| #include "src/profiler/profiler-listener.h"
|
| -#include "src/profiler/tick-sample.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -110,7 +110,8 @@ class TickSampleEventRecord {
|
| explicit TickSampleEventRecord(unsigned order) : order(order) { }
|
|
|
| unsigned order;
|
| - TickSample sample;
|
| + base::TimeTicks timestamp;
|
| + v8::TickSample sample;
|
| };
|
|
|
|
|
| @@ -152,7 +153,7 @@ class ProfilerEventsProcessor : public base::Thread {
|
| // queue (because the structure is of fixed width, but usually not all
|
| // stack frame entries are filled.) This method returns a pointer to the
|
| // next record of the buffer.
|
| - inline TickSample* StartTickSample();
|
| + inline v8::TickSample* StartTickSample();
|
| inline void FinishTickSample();
|
|
|
| // SamplingCircularQueue has stricter alignment requirements than a normal new
|
| @@ -210,7 +211,7 @@ class CpuProfiler : public CodeEventObserver {
|
| void CodeEventHandler(const CodeEventsContainer& evt_rec) override;
|
|
|
| // Invoked from stack sampler (thread or signal handler.)
|
| - inline TickSample* StartTickSample();
|
| + inline v8::TickSample* StartTickSample();
|
| inline void FinishTickSample();
|
|
|
| bool is_profiling() const { return is_profiling_; }
|
|
|