| 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> |
| 9 |
| 8 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| 9 #include "src/objects.h" | 11 #include "src/objects.h" |
| 10 #include "src/platform.h" | 12 #include "src/platform.h" |
| 11 #include "src/platform/elapsed-timer.h" | 13 #include "src/platform/elapsed-timer.h" |
| 12 | 14 |
| 13 namespace v8 { | 15 namespace v8 { |
| 14 namespace internal { | 16 namespace internal { |
| 15 | 17 |
| 16 // Logger is used for collecting logging information from V8 during | 18 // Logger is used for collecting logging information from V8 during |
| 17 // execution. The result is dumped to a file. | 19 // execution. The result is dumped to a file. |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 void HeapSampleItemEvent(const char* type, int number, int bytes); | 275 void HeapSampleItemEvent(const char* type, int number, int bytes); |
| 274 void HeapSampleJSConstructorEvent(const char* constructor, | 276 void HeapSampleJSConstructorEvent(const char* constructor, |
| 275 int number, int bytes); | 277 int number, int bytes); |
| 276 void HeapSampleJSRetainersEvent(const char* constructor, | 278 void HeapSampleJSRetainersEvent(const char* constructor, |
| 277 const char* event); | 279 const char* event); |
| 278 void HeapSampleJSProducerEvent(const char* constructor, | 280 void HeapSampleJSProducerEvent(const char* constructor, |
| 279 Address* stack); | 281 Address* stack); |
| 280 void HeapSampleStats(const char* space, const char* kind, | 282 void HeapSampleStats(const char* space, const char* kind, |
| 281 intptr_t capacity, intptr_t used); | 283 intptr_t capacity, intptr_t used); |
| 282 | 284 |
| 283 void SharedLibraryEvent(const char* library_path, | 285 void SharedLibraryEvent(const std::string& library_path, |
| 284 uintptr_t start, | |
| 285 uintptr_t end); | |
| 286 void SharedLibraryEvent(const wchar_t* library_path, | |
| 287 uintptr_t start, | 286 uintptr_t start, |
| 288 uintptr_t end); | 287 uintptr_t end); |
| 289 | 288 |
| 290 // ==== Events logged by --log-timer-events. ==== | 289 // ==== Events logged by --log-timer-events. ==== |
| 291 enum StartEnd { START, END }; | 290 enum StartEnd { START, END }; |
| 292 | 291 |
| 293 void CodeDeoptEvent(Code* code); | 292 void CodeDeoptEvent(Code* code); |
| 294 | 293 |
| 295 void TimerEvent(StartEnd se, const char* name); | 294 void TimerEvent(StartEnd se, const char* name); |
| 296 | 295 |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 int length) = 0; | 519 int length) = 0; |
| 521 | 520 |
| 522 NameBuffer* name_buffer_; | 521 NameBuffer* name_buffer_; |
| 523 }; | 522 }; |
| 524 | 523 |
| 525 | 524 |
| 526 } } // namespace v8::internal | 525 } } // namespace v8::internal |
| 527 | 526 |
| 528 | 527 |
| 529 #endif // V8_LOG_H_ | 528 #endif // V8_LOG_H_ |
| OLD | NEW |