| Index: src/platform-macos.cc
|
| diff --git a/src/platform-macos.cc b/src/platform-macos.cc
|
| index e69833885cbaad2284feac6d93f7b32fa0573c98..20db4e4738433fba1794a9fd7c716896f71c7f8d 100644
|
| --- a/src/platform-macos.cc
|
| +++ b/src/platform-macos.cc
|
| @@ -792,7 +792,7 @@ class SamplerThread : public Thread {
|
| if (state == SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS) {
|
| SamplerRegistry::IterateActiveSamplers(&DoCpuProfile, this);
|
| } else {
|
| - if (rate_limiter_.SuspendIfNecessary()) continue;
|
| + if (RuntimeProfiler::WaitForSomeIsolateToEnterJS()) continue;
|
| }
|
| OS::Sleep(interval_);
|
| }
|
| @@ -851,7 +851,6 @@ class SamplerThread : public Thread {
|
| }
|
|
|
| const int interval_;
|
| - RuntimeProfilerRateLimiter rate_limiter_;
|
|
|
| // Protects the process wide state below.
|
| static Mutex* mutex_;
|
|
|