Index: src/runtime-profiler.h |
diff --git a/src/runtime-profiler.h b/src/runtime-profiler.h |
index 8074035a92da02d37c4c8217db7f9275c508d98a..3656893ae783c556bf1215bba30c4ffc1c057f7d 100644 |
--- a/src/runtime-profiler.h |
+++ b/src/runtime-profiler.h |
@@ -40,13 +40,6 @@ class Object; |
class PendingListNode; |
class Semaphore; |
- |
-enum SamplerState { |
- IN_NON_JS_STATE = 0, |
- IN_JS_STATE = 1 |
-}; |
- |
- |
class RuntimeProfiler { |
public: |
explicit RuntimeProfiler(Isolate* isolate); |
@@ -101,6 +94,11 @@ class RuntimeProfiler { |
static const int kSamplerWindowSize = 16; |
static const int kStateWindowSize = 128; |
+ enum SamplerState { |
+ IN_NON_JS_STATE = 0, |
+ IN_JS_STATE = 1 |
+ }; |
+ |
static void HandleWakeUp(Isolate* isolate); |
void Optimize(JSFunction* function, bool eager, int delay); |
@@ -137,6 +135,7 @@ class RuntimeProfiler { |
SamplerState state_window_[kStateWindowSize]; |
int state_window_position_; |
+ int state_window_ticks_; |
int state_counts_[2]; |
// Possible state values: |