| Index: src/cpu-profiler.h
|
| diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h
|
| index cbe3e3cf81dd16030a672f75b613fa481ef4187e..a7945ad287e7755252090232a77c5b5388659042 100644
|
| --- a/src/cpu-profiler.h
|
| +++ b/src/cpu-profiler.h
|
| @@ -140,7 +140,9 @@ class CodeEventsContainer {
|
| // methods called by event producers: VM and stack sampler threads.
|
| class ProfilerEventsProcessor : public Thread {
|
| public:
|
| - explicit ProfilerEventsProcessor(ProfileGenerator* generator);
|
| + ProfilerEventsProcessor(ProfileGenerator* generator,
|
| + Sampler* sampler,
|
| + int period_in_useconds);
|
| virtual ~ProfilerEventsProcessor() {}
|
|
|
| // Thread control.
|
| @@ -163,8 +165,14 @@ class ProfilerEventsProcessor : public Thread {
|
| bool ProcessCodeEvent();
|
| bool ProcessTicks();
|
|
|
| + void ProcessEventsAndDoSample();
|
| + void ProcessEventsAndYield();
|
| +
|
| ProfileGenerator* generator_;
|
| + Sampler* sampler_;
|
| bool running_;
|
| + // Sampling period in microseconds.
|
| + const int period_in_useconds_;
|
| UnboundQueue<CodeEventsContainer> events_buffer_;
|
| SamplingCircularQueue ticks_buffer_;
|
| UnboundQueue<TickSampleEventRecord> ticks_from_vm_buffer_;
|
|
|