Index: src/platform-openbsd.cc |
diff --git a/src/platform-openbsd.cc b/src/platform-openbsd.cc |
index d4ab9a66ee7e6c50b8f7ddedde0907b680265ade..48ca2e88008bab89f9d1ee187411e05193e063e9 100644 |
--- a/src/platform-openbsd.cc |
+++ b/src/platform-openbsd.cc |
@@ -846,7 +846,7 @@ class SignalSender : public Thread { |
SamplerRegistry::IterateActiveSamplers(&DoCpuProfile, this); |
} else { |
if (signal_handler_installed_) RestoreSignalHandler(); |
- if (rate_limiter_.SuspendIfNecessary()) continue; |
+ if (RuntimeProfiler::WaitForSomeIsolateToEnterJS()) continue; |
} |
Sleep(); // TODO(svenpanne) Figure out if OS:Sleep(interval_) is enough. |
} |
@@ -882,7 +882,6 @@ class SignalSender : public Thread { |
const int vm_tgid_; |
const int interval_; |
- RuntimeProfilerRateLimiter rate_limiter_; |
// Protects the process wide state below. |
static Mutex* mutex_; |