Index: src/platform-macos.cc |
diff --git a/src/platform-macos.cc b/src/platform-macos.cc |
index 75e7e830afe9f7fc6eb68c13471b1bac48268f42..b3ee49e2c9968c6c8b0fd7c9eadfdd96595f4ae4 100644 |
--- a/src/platform-macos.cc |
+++ b/src/platform-macos.cc |
@@ -557,7 +557,7 @@ class Sampler::PlatformData : public Malloced { |
#endif // ENABLE_CPP_PROFILES_PROCESSOR |
// We always sample the VM state. |
- sample->state = Logger::state(); |
+ sample->state = VMState::current_state(); |
// If profiling, we record the pc and sp of the profiled thread. |
if (sampler_->IsProfiling() |
&& KERN_SUCCESS == thread_suspend(profiled_thread_)) { |