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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 uintptr_t end); | 293 uintptr_t end); |
294 | 294 |
295 void CodeDeoptEvent(Code* code); | 295 void CodeDeoptEvent(Code* code); |
296 void CurrentTimeEvent(); | 296 void CurrentTimeEvent(); |
297 | 297 |
298 void TimerEvent(StartEnd se, const char* name); | 298 void TimerEvent(StartEnd se, const char* name); |
299 | 299 |
300 static void EnterExternal(Isolate* isolate); | 300 static void EnterExternal(Isolate* isolate); |
301 static void LeaveExternal(Isolate* isolate); | 301 static void LeaveExternal(Isolate* isolate); |
302 | 302 |
303 static void EmptyTimerEventsLogger(const char* name, int se) {} | 303 static inline void CallEventLogger(Isolate* isolate, const char* name, |
304 static void DefaultTimerEventsLogger(const char* name, int se); | 304 StartEnd se, bool expose_to_api); |
305 | 305 |
306 // ==== Events logged by --log-regexp ==== | 306 // ==== Events logged by --log-regexp ==== |
307 // Regexp compilation and execution events. | 307 // Regexp compilation and execution events. |
308 | 308 |
309 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); | 309 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); |
310 | 310 |
311 bool is_logging() { | 311 bool is_logging() { |
312 return is_logging_; | 312 return is_logging_; |
313 } | 313 } |
314 | 314 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 int length) = 0; | 532 int length) = 0; |
533 | 533 |
534 NameBuffer* name_buffer_; | 534 NameBuffer* name_buffer_; |
535 }; | 535 }; |
536 | 536 |
537 | 537 |
538 } } // namespace v8::internal | 538 } } // namespace v8::internal |
539 | 539 |
540 | 540 |
541 #endif // V8_LOG_H_ | 541 #endif // V8_LOG_H_ |
OLD | NEW |