| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 #define LOG_EVENTS_AND_TAGS_LIST(V) \ | 103 #define LOG_EVENTS_AND_TAGS_LIST(V) \ |
| 104 V(CODE_CREATION_EVENT, "code-creation") \ | 104 V(CODE_CREATION_EVENT, "code-creation") \ |
| 105 V(CODE_MOVE_EVENT, "code-move") \ | 105 V(CODE_MOVE_EVENT, "code-move") \ |
| 106 V(CODE_DELETE_EVENT, "code-delete") \ | 106 V(CODE_DELETE_EVENT, "code-delete") \ |
| 107 V(CODE_MOVING_GC, "code-moving-gc") \ | 107 V(CODE_MOVING_GC, "code-moving-gc") \ |
| 108 V(SHARED_FUNC_MOVE_EVENT, "sfi-move") \ | 108 V(SHARED_FUNC_MOVE_EVENT, "sfi-move") \ |
| 109 V(SNAPSHOT_POSITION_EVENT, "snapshot-pos") \ | 109 V(SNAPSHOT_POSITION_EVENT, "snapshot-pos") \ |
| 110 V(SNAPSHOT_CODE_NAME_EVENT, "snapshot-code-name") \ | 110 V(SNAPSHOT_CODE_NAME_EVENT, "snapshot-code-name") \ |
| 111 V(TICK_EVENT, "tick") \ | 111 V(TICK_EVENT, "tick") \ |
| 112 V(REPEAT_META_EVENT, "repeat") \ | 112 V(REPEAT_META_EVENT, "repeat") \ |
| 113 V(MARK_EVENT, "mark") \ |
| 113 V(BUILTIN_TAG, "Builtin") \ | 114 V(BUILTIN_TAG, "Builtin") \ |
| 114 V(CALL_DEBUG_BREAK_TAG, "CallDebugBreak") \ | 115 V(CALL_DEBUG_BREAK_TAG, "CallDebugBreak") \ |
| 115 V(CALL_DEBUG_PREPARE_STEP_IN_TAG, "CallDebugPrepareStepIn") \ | 116 V(CALL_DEBUG_PREPARE_STEP_IN_TAG, "CallDebugPrepareStepIn") \ |
| 116 V(CALL_IC_TAG, "CallIC") \ | 117 V(CALL_IC_TAG, "CallIC") \ |
| 117 V(CALL_INITIALIZE_TAG, "CallInitialize") \ | 118 V(CALL_INITIALIZE_TAG, "CallInitialize") \ |
| 118 V(CALL_MEGAMORPHIC_TAG, "CallMegamorphic") \ | 119 V(CALL_MEGAMORPHIC_TAG, "CallMegamorphic") \ |
| 119 V(CALL_MISS_TAG, "CallMiss") \ | 120 V(CALL_MISS_TAG, "CallMiss") \ |
| 120 V(CALL_NORMAL_TAG, "CallNormal") \ | 121 V(CALL_NORMAL_TAG, "CallNormal") \ |
| 121 V(CALL_PRE_MONOMORPHIC_TAG, "CallPreMonomorphic") \ | 122 V(CALL_PRE_MONOMORPHIC_TAG, "CallPreMonomorphic") \ |
| 122 V(KEYED_CALL_DEBUG_BREAK_TAG, "KeyedCallDebugBreak") \ | 123 V(KEYED_CALL_DEBUG_BREAK_TAG, "KeyedCallDebugBreak") \ |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 void CodeStartLinePosInfoRecordEvent(PositionsRecorder* pos_recorder); | 271 void CodeStartLinePosInfoRecordEvent(PositionsRecorder* pos_recorder); |
| 271 // Emits a code line info finish record event. | 272 // Emits a code line info finish record event. |
| 272 // It's the callee's responsibility to dispose the parameter jit_handler_data. | 273 // It's the callee's responsibility to dispose the parameter jit_handler_data. |
| 273 void CodeEndLinePosInfoRecordEvent(Code* code, void* jit_handler_data); | 274 void CodeEndLinePosInfoRecordEvent(Code* code, void* jit_handler_data); |
| 274 | 275 |
| 275 void SharedFunctionInfoMoveEvent(Address from, Address to); | 276 void SharedFunctionInfoMoveEvent(Address from, Address to); |
| 276 | 277 |
| 277 void CodeNameEvent(Address addr, int pos, const char* code_name); | 278 void CodeNameEvent(Address addr, int pos, const char* code_name); |
| 278 void SnapshotPositionEvent(Address addr, int pos); | 279 void SnapshotPositionEvent(Address addr, int pos); |
| 279 | 280 |
| 281 void MarkEvent(char* mark); |
| 282 |
| 280 // ==== Events logged by --log-gc. ==== | 283 // ==== Events logged by --log-gc. ==== |
| 281 // Heap sampling events: start, end, and individual types. | 284 // Heap sampling events: start, end, and individual types. |
| 282 void HeapSampleBeginEvent(const char* space, const char* kind); | 285 void HeapSampleBeginEvent(const char* space, const char* kind); |
| 283 void HeapSampleEndEvent(const char* space, const char* kind); | 286 void HeapSampleEndEvent(const char* space, const char* kind); |
| 284 void HeapSampleItemEvent(const char* type, int number, int bytes); | 287 void HeapSampleItemEvent(const char* type, int number, int bytes); |
| 285 void HeapSampleJSConstructorEvent(const char* constructor, | 288 void HeapSampleJSConstructorEvent(const char* constructor, |
| 286 int number, int bytes); | 289 int number, int bytes); |
| 287 void HeapSampleJSRetainersEvent(const char* constructor, | 290 void HeapSampleJSRetainersEvent(const char* constructor, |
| 288 const char* event); | 291 const char* event); |
| 289 void HeapSampleJSProducerEvent(const char* constructor, | 292 void HeapSampleJSProducerEvent(const char* constructor, |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 int length) = 0; | 530 int length) = 0; |
| 528 | 531 |
| 529 NameBuffer* name_buffer_; | 532 NameBuffer* name_buffer_; |
| 530 }; | 533 }; |
| 531 | 534 |
| 532 | 535 |
| 533 } } // namespace v8::internal | 536 } } // namespace v8::internal |
| 534 | 537 |
| 535 | 538 |
| 536 #endif // V8_LOG_H_ | 539 #endif // V8_LOG_H_ |
| OLD | NEW |