| Index: src/sampler.h
|
| diff --git a/src/sampler.h b/src/sampler.h
|
| index cd65b12238fd9a493f1fab31212968e1edc0d79b..b17a2ed8d50e383c5a16da4c56f085464402a512 100644
|
| --- a/src/sampler.h
|
| +++ b/src/sampler.h
|
| @@ -99,16 +99,15 @@ class Sampler {
|
| return NoBarrier_Load(&profiling_) > 0 &&
|
| !NoBarrier_Load(&has_processing_thread_);
|
| }
|
| - void IncreaseProfilingDepth() { NoBarrier_AtomicIncrement(&profiling_, 1); }
|
| - void DecreaseProfilingDepth() { NoBarrier_AtomicIncrement(&profiling_, -1); }
|
| + void IncreaseProfilingDepth();
|
| + void DecreaseProfilingDepth();
|
|
|
| // Whether the sampler is running (that is, consumes resources).
|
| bool IsActive() const { return NoBarrier_Load(&active_); }
|
|
|
| + void DoSample();
|
| // If true next sample must be initiated on the profiler event processor
|
| // thread right after latest sample is processed.
|
| - static bool CanSampleOnProfilerEventsProcessorThread();
|
| - void DoSample();
|
| void SetHasProcessingThread(bool value) {
|
| NoBarrier_Store(&has_processing_thread_, value);
|
| }
|
|
|