| Index: src/platform-win32.cc
|
| diff --git a/src/platform-win32.cc b/src/platform-win32.cc
|
| index 81b0d4c12e0585de4fb2dcc9a8faf38d582c0461..04ffea968c640ba8c9fdb97fb41bd7df16c4a0fe 100644
|
| --- a/src/platform-win32.cc
|
| +++ b/src/platform-win32.cc
|
| @@ -1807,6 +1807,9 @@ class Sampler::PlatformData : public Malloced {
|
| while (sampler_->IsActive()) {
|
| TickSample sample;
|
|
|
| + // We always sample the VM state.
|
| + sample.state = Logger::state();
|
| +
|
| // If profiling, we record the pc and sp of the profiled thread.
|
| if (sampler_->IsProfiling()
|
| && SuspendThread(profiled_thread_) != (DWORD)-1) {
|
| @@ -1826,8 +1829,6 @@ class Sampler::PlatformData : public Malloced {
|
| ResumeThread(profiled_thread_);
|
| }
|
|
|
| - // We always sample the VM state.
|
| - sample.state = Logger::state();
|
| // Invoke tick handler with program counter and stack pointer.
|
| sampler_->Tick(&sample);
|
|
|
|
|