Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 0dba08dae50005349578df5bcb1048a0e066e45c..2ca89dd468060990aaeffa339d18af8b06932c32 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -176,8 +176,11 @@ class Ticker: public Sampler { |
~Ticker() { if (IsActive()) Stop(); } |
+ void SampleStack(TickSample* sample) { |
+ StackTracer::Trace(sample); |
+ } |
+ |
void Tick(TickSample* sample) { |
- if (IsProfiling()) StackTracer::Trace(sample); |
if (profiler_) profiler_->Insert(sample); |
if (window_) window_->AddState(sample->state); |
} |