diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-01-01 12:28:07 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-01-01 16:07:02 +0400 |
commit | 7b4d95a976f1b76e6dcefb6ca91dff738c80ab7a (patch) | |
tree | 1eb943733a2e660fc0183778fd441443e06196e2 /deps/v8/src/log.h | |
parent | 9e32c2ef3ede29ba0ae2086bdf658f6cd44182df (diff) | |
download | android-node-v8-7b4d95a976f1b76e6dcefb6ca91dff738c80ab7a.tar.gz android-node-v8-7b4d95a976f1b76e6dcefb6ca91dff738c80ab7a.tar.bz2 android-node-v8-7b4d95a976f1b76e6dcefb6ca91dff738c80ab7a.zip |
deps: update v8 to 3.15.11
Diffstat (limited to 'deps/v8/src/log.h')
-rw-r--r-- | deps/v8/src/log.h | 44 |
1 files changed, 35 insertions, 9 deletions
diff --git a/deps/v8/src/log.h b/deps/v8/src/log.h index 33f359a7f9..eced6050a5 100644 --- a/deps/v8/src/log.h +++ b/deps/v8/src/log.h @@ -74,8 +74,8 @@ namespace internal { class LogMessageBuilder; class Profiler; class Semaphore; -class SlidingStateWindow; class Ticker; +class Isolate; #undef LOG #define LOG(isolate, Call) \ @@ -174,9 +174,6 @@ class Logger { // leaving the file open. FILE* TearDown(); - // Enable the computation of a sliding window of states. - void EnableSlidingStateWindow(); - // Emits an event with a string value -> (name, value). void StringEvent(const char* name, const char* value); @@ -275,6 +272,37 @@ class Logger { uintptr_t start, uintptr_t end); + // ==== Events logged by --log-timer-events. ==== + void TimerEvent(const char* name, int64_t start, int64_t end); + void ExternalSwitch(StateTag old_tag, StateTag new_tag); + + static void EnterExternal(); + static void LeaveExternal(); + + class TimerEventScope { + public: + TimerEventScope(Isolate* isolate, const char* name) + : isolate_(isolate), name_(name), start_(0) { + if (FLAG_log_internal_timer_events) start_ = OS::Ticks(); + } + + ~TimerEventScope() { + if (FLAG_log_internal_timer_events) LogTimerEvent(); + } + + void LogTimerEvent(); + + static const char* v8_recompile_synchronous; + static const char* v8_recompile_parallel; + static const char* v8_compile_full_code; + static const char* v8_execute; + + private: + Isolate* isolate_; + const char* name_; + int64_t start_; + }; + // ==== Events logged by --log-regexp ==== // Regexp compilation and execution events. @@ -401,10 +429,6 @@ class Logger { // of samples. Profiler* profiler_; - // SlidingStateWindow instance keeping a sliding window of the most - // recent VM states. - SlidingStateWindow* sliding_state_window_; - // An array of log events names. const char* const* log_events_; @@ -415,7 +439,6 @@ class Logger { friend class LogMessageBuilder; friend class TimeLog; friend class Profiler; - friend class SlidingStateWindow; friend class StackTracer; friend class VMState; @@ -449,6 +472,9 @@ class Logger { // Logger::FunctionCreateEvent(...) Address prev_code_; + int64_t epoch_; + static int64_t enter_external_; + friend class CpuProfiler; }; |