Index: src/platform-linux.cc |
diff --git a/src/platform-linux.cc b/src/platform-linux.cc |
index e890f94aad39190ad78bd2a99338404a7358a8db..7898aba982a513f037993994072029a01510584a 100644 |
--- a/src/platform-linux.cc |
+++ b/src/platform-linux.cc |
@@ -728,6 +728,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. |
@@ -760,9 +763,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); |
#endif |
} |