Index: src/runtime-profiler.h |
diff --git a/src/runtime-profiler.h b/src/runtime-profiler.h |
index 507535f0b4d38e3e0c87e97064eec7f4979077be..62c48c7a49bdfb49350eefb636c3d44371324c9b 100644 |
--- a/src/runtime-profiler.h |
+++ b/src/runtime-profiler.h |
@@ -71,17 +71,12 @@ class RuntimeProfiler { |
// Profiler thread interface. |
// |
- // IsSomeIsolateInJS(): |
- // The profiler thread can query whether some isolate is currently |
- // running JavaScript code. |
- // |
// WaitForSomeIsolateToEnterJS(): |
// When no isolates are running JavaScript code for some time the |
// profiler thread suspends itself by calling the wait function. The |
// wait function returns true after it waited or false immediately. |
// While the function was waiting the profiler may have been |
// disabled so it *must check* whether it is allowed to continue. |
- static bool IsSomeIsolateInJS(); |
static bool WaitForSomeIsolateToEnterJS(); |
// Stops the runtime profiler thread when profiling support is being |
@@ -134,24 +129,6 @@ class RuntimeProfiler { |
}; |
-// Rate limiter intended to be used in the profiler thread. |
-class RuntimeProfilerRateLimiter BASE_EMBEDDED { |
- public: |
- RuntimeProfilerRateLimiter() {} |
- |
- // Suspends the current thread (which must be the profiler thread) |
- // when not executing JavaScript to minimize CPU usage. Returns |
- // whether the thread was suspended (and so must check whether |
- // profiling is still active.) |
- // |
- // Does nothing when runtime profiling is not enabled. |
- bool SuspendIfNecessary(); |
- |
- private: |
- DISALLOW_COPY_AND_ASSIGN(RuntimeProfilerRateLimiter); |
-}; |
- |
- |
// Implementation of RuntimeProfiler inline functions. |
void RuntimeProfiler::IsolateEnteredJS(Isolate* isolate) { |