| Index: src/platform.h
|
| diff --git a/src/platform.h b/src/platform.h
|
| index b5123c5acac89fe90869ef26e4eb66595343b70e..11a1e79bcc1b10a6ca2af662fa0af1f74f4a7356 100644
|
| --- a/src/platform.h
|
| +++ b/src/platform.h
|
| @@ -510,6 +510,9 @@ class Sampler {
|
| explicit Sampler(int interval, bool profiling);
|
| virtual ~Sampler();
|
|
|
| + // Performs stack sampling.
|
| + virtual void SampleStack(TickSample* sample) = 0;
|
| +
|
| // This method is called for each sampling period with the current
|
| // program counter.
|
| virtual void Tick(TickSample* sample) = 0;
|
| @@ -527,8 +530,8 @@ class Sampler {
|
| class PlatformData;
|
|
|
| private:
|
| - int interval_;
|
| - bool profiling_;
|
| + const int interval_;
|
| + const bool profiling_;
|
| bool active_;
|
| PlatformData* data_; // Platform specific data.
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(Sampler);
|
|
|