OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 public: | 109 public: |
110 explicit VMState(StateTag state) {} | 110 explicit VMState(StateTag state) {} |
111 #endif | 111 #endif |
112 }; | 112 }; |
113 | 113 |
114 | 114 |
115 #define LOG_EVENTS_AND_TAGS_LIST(V) \ | 115 #define LOG_EVENTS_AND_TAGS_LIST(V) \ |
116 V(CODE_CREATION_EVENT, "code-creation", "cc") \ | 116 V(CODE_CREATION_EVENT, "code-creation", "cc") \ |
117 V(CODE_MOVE_EVENT, "code-move", "cm") \ | 117 V(CODE_MOVE_EVENT, "code-move", "cm") \ |
118 V(CODE_DELETE_EVENT, "code-delete", "cd") \ | 118 V(CODE_DELETE_EVENT, "code-delete", "cd") \ |
| 119 V(SNAPSHOT_POSITION_EVENT, "snapshot-pos", "sp") \ |
119 V(TICK_EVENT, "tick", "t") \ | 120 V(TICK_EVENT, "tick", "t") \ |
120 V(REPEAT_META_EVENT, "repeat", "r") \ | 121 V(REPEAT_META_EVENT, "repeat", "r") \ |
121 V(BUILTIN_TAG, "Builtin", "bi") \ | 122 V(BUILTIN_TAG, "Builtin", "bi") \ |
122 V(CALL_DEBUG_BREAK_TAG, "CallDebugBreak", "cdb") \ | 123 V(CALL_DEBUG_BREAK_TAG, "CallDebugBreak", "cdb") \ |
123 V(CALL_DEBUG_PREPARE_STEP_IN_TAG, "CallDebugPrepareStepIn", "cdbsi") \ | 124 V(CALL_DEBUG_PREPARE_STEP_IN_TAG, "CallDebugPrepareStepIn", "cdbsi") \ |
124 V(CALL_IC_TAG, "CallIC", "cic") \ | 125 V(CALL_IC_TAG, "CallIC", "cic") \ |
125 V(CALL_INITIALIZE_TAG, "CallInitialize", "ci") \ | 126 V(CALL_INITIALIZE_TAG, "CallInitialize", "ci") \ |
126 V(CALL_MEGAMORPHIC_TAG, "CallMegamorphic", "cmm") \ | 127 V(CALL_MEGAMORPHIC_TAG, "CallMegamorphic", "cmm") \ |
127 V(CALL_MISS_TAG, "CallMiss", "cm") \ | 128 V(CALL_MISS_TAG, "CallMiss", "cm") \ |
128 V(CALL_NORMAL_TAG, "CallNormal", "cn") \ | 129 V(CALL_NORMAL_TAG, "CallNormal", "cn") \ |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 static void CodeCreateEvent(LogEventsAndTags tag, Code* code, String* name, | 218 static void CodeCreateEvent(LogEventsAndTags tag, Code* code, String* name, |
218 String* source, int line); | 219 String* source, int line); |
219 static void CodeCreateEvent(LogEventsAndTags tag, Code* code, int args_count); | 220 static void CodeCreateEvent(LogEventsAndTags tag, Code* code, int args_count); |
220 // Emits a code create event for a RegExp. | 221 // Emits a code create event for a RegExp. |
221 static void RegExpCodeCreateEvent(Code* code, String* source); | 222 static void RegExpCodeCreateEvent(Code* code, String* source); |
222 // Emits a code move event. | 223 // Emits a code move event. |
223 static void CodeMoveEvent(Address from, Address to); | 224 static void CodeMoveEvent(Address from, Address to); |
224 // Emits a code delete event. | 225 // Emits a code delete event. |
225 static void CodeDeleteEvent(Address from); | 226 static void CodeDeleteEvent(Address from); |
226 | 227 |
| 228 static void SnapshotPositionEvent(Address addr, int pos); |
| 229 |
227 // ==== Events logged by --log-gc. ==== | 230 // ==== Events logged by --log-gc. ==== |
228 // Heap sampling events: start, end, and individual types. | 231 // Heap sampling events: start, end, and individual types. |
229 static void HeapSampleBeginEvent(const char* space, const char* kind); | 232 static void HeapSampleBeginEvent(const char* space, const char* kind); |
230 static void HeapSampleEndEvent(const char* space, const char* kind); | 233 static void HeapSampleEndEvent(const char* space, const char* kind); |
231 static void HeapSampleItemEvent(const char* type, int number, int bytes); | 234 static void HeapSampleItemEvent(const char* type, int number, int bytes); |
232 static void HeapSampleJSConstructorEvent(const char* constructor, | 235 static void HeapSampleJSConstructorEvent(const char* constructor, |
233 int number, int bytes); | 236 int number, int bytes); |
234 static void HeapSampleJSRetainersEvent(const char* constructor, | 237 static void HeapSampleJSRetainersEvent(const char* constructor, |
235 const char* event); | 238 const char* event); |
236 static void HeapSampleJSProducerEvent(const char* constructor, | 239 static void HeapSampleJSProducerEvent(const char* constructor, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 // Class that extracts stack trace, used for profiling. | 365 // Class that extracts stack trace, used for profiling. |
363 class StackTracer : public AllStatic { | 366 class StackTracer : public AllStatic { |
364 public: | 367 public: |
365 static void Trace(TickSample* sample); | 368 static void Trace(TickSample* sample); |
366 }; | 369 }; |
367 | 370 |
368 | 371 |
369 } } // namespace v8::internal | 372 } } // namespace v8::internal |
370 | 373 |
371 #endif // V8_LOG_H_ | 374 #endif // V8_LOG_H_ |
OLD | NEW |