Index: src/cpu-profiler.h |
diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h |
index 6e2e771a41fbfa3c8e59d3066d02cbb559896a1e..2cef421f5175ab45e4f854802b8eb0fb4dc3edee 100644 |
--- a/src/cpu-profiler.h |
+++ b/src/cpu-profiler.h |
@@ -124,7 +124,7 @@ class TickSampleEventRecord { |
// methods called by event producers: VM and stack sampler threads. |
class ProfilerEventsProcessor : public Thread { |
public: |
- explicit ProfilerEventsProcessor(ProfileGenerator* generator); |
+ explicit ProfilerEventsProcessor(ProfileGenerator* generator, Sampler* sampler, int interval_in_useconds); |
virtual ~ProfilerEventsProcessor() {} |
// Thread control. |
@@ -172,12 +172,16 @@ class ProfilerEventsProcessor : public Thread { |
// Called from events processing thread (Run() method.) |
bool ProcessCodeEvent(unsigned* dequeue_order); |
- bool ProcessTicks(unsigned dequeue_order); |
+ bool ProcessTicks(int64_t stop_time, unsigned dequeue_order); |
+ void ProcessEventsQueue(int64_t stop_time, unsigned* dequeue_order); |
INLINE(static bool FilterOutCodeCreateEvent(Logger::LogEventsAndTags tag)); |
ProfileGenerator* generator_; |
+ Sampler* sampler_; |
bool running_; |
+ // Sampling interval in microseconds. |
+ const int interval_in_useconds_; |
UnboundQueue<CodeEventsContainer> events_buffer_; |
SamplingCircularQueue ticks_buffer_; |
UnboundQueue<TickSampleEventRecord> ticks_from_vm_buffer_; |