| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_LOG_H_ | 5 #ifndef V8_LOG_H_ |
| 6 #define V8_LOG_H_ | 6 #define V8_LOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 void TimerEvent(StartEnd se, const char* name); | 211 void TimerEvent(StartEnd se, const char* name); |
| 212 | 212 |
| 213 static void EnterExternal(Isolate* isolate); | 213 static void EnterExternal(Isolate* isolate); |
| 214 static void LeaveExternal(Isolate* isolate); | 214 static void LeaveExternal(Isolate* isolate); |
| 215 | 215 |
| 216 static void DefaultEventLoggerSentinel(const char* name, int event) {} | 216 static void DefaultEventLoggerSentinel(const char* name, int event) {} |
| 217 | 217 |
| 218 INLINE(static void CallEventLogger(Isolate* isolate, const char* name, | 218 INLINE(static void CallEventLogger(Isolate* isolate, const char* name, |
| 219 StartEnd se, bool expose_to_api)); | 219 StartEnd se, bool expose_to_api)); |
| 220 | 220 |
| 221 // ==== Events logged by --log-regexp ==== | |
| 222 // Regexp compilation and execution events. | |
| 223 | |
| 224 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); | |
| 225 | |
| 226 bool is_logging() { | 221 bool is_logging() { |
| 227 return is_logging_; | 222 return is_logging_; |
| 228 } | 223 } |
| 229 | 224 |
| 230 bool is_logging_code_events() { | 225 bool is_logging_code_events() { |
| 231 return is_logging() || jit_logger_ != NULL; | 226 return is_logging() || jit_logger_ != NULL; |
| 232 } | 227 } |
| 233 | 228 |
| 234 // Stop collection of profiling data. | 229 // Stop collection of profiling data. |
| 235 // When data collection is paused, CPU Tick events are discarded. | 230 // When data collection is paused, CPU Tick events are discarded. |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 | 401 |
| 407 NameBuffer* name_buffer_; | 402 NameBuffer* name_buffer_; |
| 408 }; | 403 }; |
| 409 | 404 |
| 410 | 405 |
| 411 } // namespace internal | 406 } // namespace internal |
| 412 } // namespace v8 | 407 } // namespace v8 |
| 413 | 408 |
| 414 | 409 |
| 415 #endif // V8_LOG_H_ | 410 #endif // V8_LOG_H_ |
| OLD | NEW |