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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 logger->Call; \ | 82 logger->Call; \ |
83 } while (false) | 83 } while (false) |
84 | 84 |
85 #define LOG_EVENTS_AND_TAGS_LIST(V) \ | 85 #define LOG_EVENTS_AND_TAGS_LIST(V) \ |
86 V(CODE_CREATION_EVENT, "code-creation") \ | 86 V(CODE_CREATION_EVENT, "code-creation") \ |
87 V(CODE_DISABLE_OPT_EVENT, "code-disable-optimization") \ | 87 V(CODE_DISABLE_OPT_EVENT, "code-disable-optimization") \ |
88 V(CODE_MOVE_EVENT, "code-move") \ | 88 V(CODE_MOVE_EVENT, "code-move") \ |
89 V(CODE_DELETE_EVENT, "code-delete") \ | 89 V(CODE_DELETE_EVENT, "code-delete") \ |
90 V(CODE_MOVING_GC, "code-moving-gc") \ | 90 V(CODE_MOVING_GC, "code-moving-gc") \ |
91 V(SHARED_FUNC_MOVE_EVENT, "sfi-move") \ | 91 V(SHARED_FUNC_MOVE_EVENT, "sfi-move") \ |
92 V(SNAPSHOT_POSITION_EVENT, "snapshot-pos") \ | |
93 V(SNAPSHOT_CODE_NAME_EVENT, "snapshot-code-name") \ | 92 V(SNAPSHOT_CODE_NAME_EVENT, "snapshot-code-name") \ |
94 V(TICK_EVENT, "tick") \ | 93 V(TICK_EVENT, "tick") \ |
95 V(REPEAT_META_EVENT, "repeat") \ | 94 V(REPEAT_META_EVENT, "repeat") \ |
96 V(BUILTIN_TAG, "Builtin") \ | 95 V(BUILTIN_TAG, "Builtin") \ |
97 V(CALL_DEBUG_BREAK_TAG, "CallDebugBreak") \ | 96 V(CALL_DEBUG_BREAK_TAG, "CallDebugBreak") \ |
98 V(CALL_DEBUG_PREPARE_STEP_IN_TAG, "CallDebugPrepareStepIn") \ | 97 V(CALL_DEBUG_PREPARE_STEP_IN_TAG, "CallDebugPrepareStepIn") \ |
99 V(CALL_INITIALIZE_TAG, "CallInitialize") \ | 98 V(CALL_INITIALIZE_TAG, "CallInitialize") \ |
100 V(CALL_MEGAMORPHIC_TAG, "CallMegamorphic") \ | 99 V(CALL_MEGAMORPHIC_TAG, "CallMegamorphic") \ |
101 V(CALL_MISS_TAG, "CallMiss") \ | 100 V(CALL_MISS_TAG, "CallMiss") \ |
102 V(CALL_NORMAL_TAG, "CallNormal") \ | 101 V(CALL_NORMAL_TAG, "CallNormal") \ |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // Emits a code line info start to record event | 252 // Emits a code line info start to record event |
254 void CodeStartLinePosInfoRecordEvent(PositionsRecorder* pos_recorder); | 253 void CodeStartLinePosInfoRecordEvent(PositionsRecorder* pos_recorder); |
255 // Emits a code line info finish record event. | 254 // Emits a code line info finish record event. |
256 // It's the callee's responsibility to dispose the parameter jit_handler_data. | 255 // It's the callee's responsibility to dispose the parameter jit_handler_data. |
257 void CodeEndLinePosInfoRecordEvent(AbstractCode* code, | 256 void CodeEndLinePosInfoRecordEvent(AbstractCode* code, |
258 void* jit_handler_data); | 257 void* jit_handler_data); |
259 | 258 |
260 void SharedFunctionInfoMoveEvent(Address from, Address to); | 259 void SharedFunctionInfoMoveEvent(Address from, Address to); |
261 | 260 |
262 void CodeNameEvent(Address addr, int pos, const char* code_name); | 261 void CodeNameEvent(Address addr, int pos, const char* code_name); |
263 void SnapshotPositionEvent(HeapObject* obj, int pos); | |
264 | 262 |
265 // ==== Events logged by --log-gc. ==== | 263 // ==== Events logged by --log-gc. ==== |
266 // Heap sampling events: start, end, and individual types. | 264 // Heap sampling events: start, end, and individual types. |
267 void HeapSampleBeginEvent(const char* space, const char* kind); | 265 void HeapSampleBeginEvent(const char* space, const char* kind); |
268 void HeapSampleEndEvent(const char* space, const char* kind); | 266 void HeapSampleEndEvent(const char* space, const char* kind); |
269 void HeapSampleItemEvent(const char* type, int number, int bytes); | 267 void HeapSampleItemEvent(const char* type, int number, int bytes); |
270 void HeapSampleJSConstructorEvent(const char* constructor, | 268 void HeapSampleJSConstructorEvent(const char* constructor, |
271 int number, int bytes); | 269 int number, int bytes); |
272 void HeapSampleJSRetainersEvent(const char* constructor, | 270 void HeapSampleJSRetainersEvent(const char* constructor, |
273 const char* event); | 271 const char* event); |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 | 526 |
529 NameBuffer* name_buffer_; | 527 NameBuffer* name_buffer_; |
530 }; | 528 }; |
531 | 529 |
532 | 530 |
533 } // namespace internal | 531 } // namespace internal |
534 } // namespace v8 | 532 } // namespace v8 |
535 | 533 |
536 | 534 |
537 #endif // V8_LOG_H_ | 535 #endif // V8_LOG_H_ |
OLD | NEW |