| Index: src/platform-win32.cc
|
| ===================================================================
|
| --- src/platform-win32.cc (revision 3964)
|
| +++ src/platform-win32.cc (working copy)
|
| @@ -1807,6 +1807,9 @@
|
| 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 @@
|
| 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);
|
|
|
|
|