| 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 "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/objects.h" | 9 #include "src/objects.h" |
| 10 #include "src/platform.h" | 10 #include "src/platform.h" |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 uintptr_t start, | 284 uintptr_t start, |
| 285 uintptr_t end); | 285 uintptr_t end); |
| 286 void SharedLibraryEvent(const wchar_t* library_path, | 286 void SharedLibraryEvent(const wchar_t* library_path, |
| 287 uintptr_t start, | 287 uintptr_t start, |
| 288 uintptr_t end); | 288 uintptr_t end); |
| 289 | 289 |
| 290 // ==== Events logged by --log-timer-events. ==== | 290 // ==== Events logged by --log-timer-events. ==== |
| 291 enum StartEnd { START, END }; | 291 enum StartEnd { START, END }; |
| 292 | 292 |
| 293 void CodeDeoptEvent(Code* code); | 293 void CodeDeoptEvent(Code* code); |
| 294 void CurrentTimeEvent(); |
| 294 | 295 |
| 295 void TimerEvent(StartEnd se, const char* name); | 296 void TimerEvent(StartEnd se, const char* name); |
| 296 | 297 |
| 297 static void EnterExternal(Isolate* isolate); | 298 static void EnterExternal(Isolate* isolate); |
| 298 static void LeaveExternal(Isolate* isolate); | 299 static void LeaveExternal(Isolate* isolate); |
| 299 | 300 |
| 300 static void EmptyLogInternalEvents(const char* name, int se) { } | 301 static void EmptyLogInternalEvents(const char* name, int se) { } |
| 301 static void LogInternalEvents(const char* name, int se); | 302 static void LogInternalEvents(const char* name, int se); |
| 302 | 303 |
| 303 class TimerEventScope { | 304 class TimerEventScope { |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 int length) = 0; | 521 int length) = 0; |
| 521 | 522 |
| 522 NameBuffer* name_buffer_; | 523 NameBuffer* name_buffer_; |
| 523 }; | 524 }; |
| 524 | 525 |
| 525 | 526 |
| 526 } } // namespace v8::internal | 527 } } // namespace v8::internal |
| 527 | 528 |
| 528 | 529 |
| 529 #endif // V8_LOG_H_ | 530 #endif // V8_LOG_H_ |
| OLD | NEW |