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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 } while (false) | 84 } while (false) |
85 #else | 85 #else |
86 #define LOG(Call) ((void) 0) | 86 #define LOG(Call) ((void) 0) |
87 #endif | 87 #endif |
88 | 88 |
89 #define LOG_EVENTS_AND_TAGS_LIST(V) \ | 89 #define LOG_EVENTS_AND_TAGS_LIST(V) \ |
90 V(CODE_CREATION_EVENT, "code-creation") \ | 90 V(CODE_CREATION_EVENT, "code-creation") \ |
91 V(CODE_MOVE_EVENT, "code-move") \ | 91 V(CODE_MOVE_EVENT, "code-move") \ |
92 V(CODE_DELETE_EVENT, "code-delete") \ | 92 V(CODE_DELETE_EVENT, "code-delete") \ |
93 V(CODE_MOVING_GC, "code-moving-gc") \ | 93 V(CODE_MOVING_GC, "code-moving-gc") \ |
94 V(SFI_MOVE_EVENT, "sfi-move") \ | 94 V(SHARED_FUNC_MOVE_EVENT, "sfi-move") \ |
95 V(SNAPSHOT_POSITION_EVENT, "snapshot-pos") \ | 95 V(SNAPSHOT_POSITION_EVENT, "snapshot-pos") \ |
96 V(TICK_EVENT, "tick") \ | 96 V(TICK_EVENT, "tick") \ |
97 V(REPEAT_META_EVENT, "repeat") \ | 97 V(REPEAT_META_EVENT, "repeat") \ |
98 V(BUILTIN_TAG, "Builtin") \ | 98 V(BUILTIN_TAG, "Builtin") \ |
99 V(CALL_DEBUG_BREAK_TAG, "CallDebugBreak") \ | 99 V(CALL_DEBUG_BREAK_TAG, "CallDebugBreak") \ |
100 V(CALL_DEBUG_PREPARE_STEP_IN_TAG, "CallDebugPrepareStepIn") \ | 100 V(CALL_DEBUG_PREPARE_STEP_IN_TAG, "CallDebugPrepareStepIn") \ |
101 V(CALL_IC_TAG, "CallIC") \ | 101 V(CALL_IC_TAG, "CallIC") \ |
102 V(CALL_INITIALIZE_TAG, "CallInitialize") \ | 102 V(CALL_INITIALIZE_TAG, "CallInitialize") \ |
103 V(CALL_MEGAMORPHIC_TAG, "CallMegamorphic") \ | 103 V(CALL_MEGAMORPHIC_TAG, "CallMegamorphic") \ |
104 V(CALL_MISS_TAG, "CallMiss") \ | 104 V(CALL_MISS_TAG, "CallMiss") \ |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 String* source, int line); | 217 String* source, int line); |
218 static void CodeCreateEvent(LogEventsAndTags tag, Code* code, int args_count); | 218 static void CodeCreateEvent(LogEventsAndTags tag, Code* code, int args_count); |
219 static void CodeMovingGCEvent(); | 219 static void CodeMovingGCEvent(); |
220 // Emits a code create event for a RegExp. | 220 // Emits a code create event for a RegExp. |
221 static void RegExpCodeCreateEvent(Code* code, String* source); | 221 static void RegExpCodeCreateEvent(Code* code, String* source); |
222 // Emits a code move event. | 222 // Emits a code move event. |
223 static void CodeMoveEvent(Address from, Address to); | 223 static void CodeMoveEvent(Address from, Address to); |
224 // Emits a code delete event. | 224 // Emits a code delete event. |
225 static void CodeDeleteEvent(Address from); | 225 static void CodeDeleteEvent(Address from); |
226 | 226 |
227 static void SFIMoveEvent(Address from, Address to); | 227 static void SharedFunctionMoveEvent(Address from, Address to); |
228 | 228 |
229 static void SnapshotPositionEvent(Address addr, int pos); | 229 static void SnapshotPositionEvent(Address addr, int pos); |
230 | 230 |
231 // ==== Events logged by --log-gc. ==== | 231 // ==== Events logged by --log-gc. ==== |
232 // Heap sampling events: start, end, and individual types. | 232 // Heap sampling events: start, end, and individual types. |
233 static void HeapSampleBeginEvent(const char* space, const char* kind); | 233 static void HeapSampleBeginEvent(const char* space, const char* kind); |
234 static void HeapSampleEndEvent(const char* space, const char* kind); | 234 static void HeapSampleEndEvent(const char* space, const char* kind); |
235 static void HeapSampleItemEvent(const char* type, int number, int bytes); | 235 static void HeapSampleItemEvent(const char* type, int number, int bytes); |
236 static void HeapSampleJSConstructorEvent(const char* constructor, | 236 static void HeapSampleJSConstructorEvent(const char* constructor, |
237 int number, int bytes); | 237 int number, int bytes); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 // Class that extracts stack trace, used for profiling. | 372 // Class that extracts stack trace, used for profiling. |
373 class StackTracer : public AllStatic { | 373 class StackTracer : public AllStatic { |
374 public: | 374 public: |
375 static void Trace(TickSample* sample); | 375 static void Trace(TickSample* sample); |
376 }; | 376 }; |
377 | 377 |
378 } } // namespace v8::internal | 378 } } // namespace v8::internal |
379 | 379 |
380 | 380 |
381 #endif // V8_LOG_H_ | 381 #endif // V8_LOG_H_ |
OLD | NEW |