Index: src/platform-freebsd.cc |
diff --git a/src/platform-freebsd.cc b/src/platform-freebsd.cc |
index ff75776856466c5ec47fabb6b550c718d0b3eba8..3617e8af2b4db497cf5c1149b704d0268aa61a50 100644 |
--- a/src/platform-freebsd.cc |
+++ b/src/platform-freebsd.cc |
@@ -567,6 +567,9 @@ static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) { |
TickSample sample; |
+ // We always sample the VM state. |
+ sample.state = Logger::state(); |
+ |
// If profiling, we extract the current pc and sp. |
if (active_sampler_->IsProfiling()) { |
// Extracting the sample from the context is extremely machine dependent. |
@@ -588,9 +591,6 @@ static void ProfilerSignalHandler(int signal, siginfo_t* info, void* context) { |
active_sampler_->SampleStack(&sample); |
} |
- // We always sample the VM state. |
- sample.state = Logger::state(); |
- |
active_sampler_->Tick(&sample); |
} |