Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: src/log.h

Issue 6614010: [Isolates] Merge 6700:7030 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/liveobjectlist-inl.h ('k') | src/log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } while (false) 87 } while (false)
88 #else 88 #else
89 #define LOG(Call) ((void) 0) 89 #define LOG(Call) ((void) 0)
90 #endif 90 #endif
91 91
92 #define LOG_EVENTS_AND_TAGS_LIST(V) \ 92 #define LOG_EVENTS_AND_TAGS_LIST(V) \
93 V(CODE_CREATION_EVENT, "code-creation") \ 93 V(CODE_CREATION_EVENT, "code-creation") \
94 V(CODE_MOVE_EVENT, "code-move") \ 94 V(CODE_MOVE_EVENT, "code-move") \
95 V(CODE_DELETE_EVENT, "code-delete") \ 95 V(CODE_DELETE_EVENT, "code-delete") \
96 V(CODE_MOVING_GC, "code-moving-gc") \ 96 V(CODE_MOVING_GC, "code-moving-gc") \
97 V(FUNCTION_CREATION_EVENT, "function-creation") \ 97 V(SFI_MOVE_EVENT, "sfi-move") \
98 V(FUNCTION_MOVE_EVENT, "function-move") \
99 V(FUNCTION_DELETE_EVENT, "function-delete") \
100 V(SNAPSHOT_POSITION_EVENT, "snapshot-pos") \ 98 V(SNAPSHOT_POSITION_EVENT, "snapshot-pos") \
101 V(TICK_EVENT, "tick") \ 99 V(TICK_EVENT, "tick") \
102 V(REPEAT_META_EVENT, "repeat") \ 100 V(REPEAT_META_EVENT, "repeat") \
103 V(BUILTIN_TAG, "Builtin") \ 101 V(BUILTIN_TAG, "Builtin") \
104 V(CALL_DEBUG_BREAK_TAG, "CallDebugBreak") \ 102 V(CALL_DEBUG_BREAK_TAG, "CallDebugBreak") \
105 V(CALL_DEBUG_PREPARE_STEP_IN_TAG, "CallDebugPrepareStepIn") \ 103 V(CALL_DEBUG_PREPARE_STEP_IN_TAG, "CallDebugPrepareStepIn") \
106 V(CALL_IC_TAG, "CallIC") \ 104 V(CALL_IC_TAG, "CallIC") \
107 V(CALL_INITIALIZE_TAG, "CallInitialize") \ 105 V(CALL_INITIALIZE_TAG, "CallInitialize") \
108 V(CALL_MEGAMORPHIC_TAG, "CallMegamorphic") \ 106 V(CALL_MEGAMORPHIC_TAG, "CallMegamorphic") \
109 V(CALL_MISS_TAG, "CallMiss") \ 107 V(CALL_MISS_TAG, "CallMiss") \
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 void ApiObjectAccess(const char* tag, JSObject* obj); 205 void ApiObjectAccess(const char* tag, JSObject* obj);
208 void ApiEntryCall(const char* name); 206 void ApiEntryCall(const char* name);
209 207
210 208
211 // ==== Events logged by --log-code. ==== 209 // ==== Events logged by --log-code. ====
212 // Emits a code event for a callback function. 210 // Emits a code event for a callback function.
213 void CallbackEvent(String* name, Address entry_point); 211 void CallbackEvent(String* name, Address entry_point);
214 void GetterCallbackEvent(String* name, Address entry_point); 212 void GetterCallbackEvent(String* name, Address entry_point);
215 void SetterCallbackEvent(String* name, Address entry_point); 213 void SetterCallbackEvent(String* name, Address entry_point);
216 // Emits a code create event. 214 // Emits a code create event.
217 void CodeCreateEvent(LogEventsAndTags tag, Code* code, const char* source); 215 void CodeCreateEvent(LogEventsAndTags tag,
218 void CodeCreateEvent(LogEventsAndTags tag, Code* code, String* name); 216 Code* code, const char* source);
219 void CodeCreateEvent(LogEventsAndTags tag, Code* code, String* name, 217 void CodeCreateEvent(LogEventsAndTags tag,
218 Code* code, String* name);
219 void CodeCreateEvent(LogEventsAndTags tag,
220 Code* code,
221 SharedFunctionInfo* shared,
222 String* name);
223 void CodeCreateEvent(LogEventsAndTags tag,
224 Code* code,
225 SharedFunctionInfo* shared,
220 String* source, int line); 226 String* source, int line);
221 void CodeCreateEvent(LogEventsAndTags tag, Code* code, int args_count); 227 void CodeCreateEvent(LogEventsAndTags tag, Code* code, int args_count);
222 void CodeMovingGCEvent(); 228 void CodeMovingGCEvent();
223 // Emits a code create event for a RegExp. 229 // Emits a code create event for a RegExp.
224 void RegExpCodeCreateEvent(Code* code, String* source); 230 void RegExpCodeCreateEvent(Code* code, String* source);
225 // Emits a code move event. 231 // Emits a code move event.
226 void CodeMoveEvent(Address from, Address to); 232 void CodeMoveEvent(Address from, Address to);
227 // Emits a code delete event. 233 // Emits a code delete event.
228 void CodeDeleteEvent(Address from); 234 void CodeDeleteEvent(Address from);
229 // Emits a function object create event. 235
230 void FunctionCreateEvent(JSFunction* function); 236 void SFIMoveEvent(Address from, Address to);
231 void FunctionCreateEventFromMove(Heap* heap, JSFunction* function);
232 // Emits a function move event.
233 void FunctionMoveEvent(Heap* heap, Address from, Address to);
234 // Emits a function delete event.
235 void FunctionDeleteEvent(Address from);
236 237
237 void SnapshotPositionEvent(Address addr, int pos); 238 void SnapshotPositionEvent(Address addr, int pos);
238 239
239 // ==== Events logged by --log-gc. ==== 240 // ==== Events logged by --log-gc. ====
240 // Heap sampling events: start, end, and individual types. 241 // Heap sampling events: start, end, and individual types.
241 void HeapSampleBeginEvent(const char* space, const char* kind); 242 void HeapSampleBeginEvent(const char* space, const char* kind);
242 void HeapSampleEndEvent(const char* space, const char* kind); 243 void HeapSampleEndEvent(const char* space, const char* kind);
243 void HeapSampleItemEvent(const char* type, int number, int bytes); 244 void HeapSampleItemEvent(const char* type, int number, int bytes);
244 void HeapSampleJSConstructorEvent(const char* constructor, 245 void HeapSampleJSConstructorEvent(const char* constructor,
245 int number, int bytes); 246 int number, int bytes);
(...skipping 30 matching lines...) Expand all
276 void PauseProfiler(int flags, int tag); 277 void PauseProfiler(int flags, int tag);
277 void ResumeProfiler(int flags, int tag); 278 void ResumeProfiler(int flags, int tag);
278 int GetActiveProfilerModules(); 279 int GetActiveProfilerModules();
279 280
280 // If logging is performed into a memory buffer, allows to 281 // If logging is performed into a memory buffer, allows to
281 // retrieve previously written messages. See v8.h. 282 // retrieve previously written messages. See v8.h.
282 int GetLogLines(int from_pos, char* dest_buf, int max_size); 283 int GetLogLines(int from_pos, char* dest_buf, int max_size);
283 284
284 // Logs all compiled functions found in the heap. 285 // Logs all compiled functions found in the heap.
285 void LogCompiledFunctions(); 286 void LogCompiledFunctions();
286 // Logs all compiled JSFunction objects found in the heap.
287 void LogFunctionObjects();
288 // Logs all accessor callbacks found in the heap. 287 // Logs all accessor callbacks found in the heap.
289 void LogAccessorCallbacks(); 288 void LogAccessorCallbacks();
290 // Used for logging stubs found in the snapshot. 289 // Used for logging stubs found in the snapshot.
291 void LogCodeObjects(); 290 void LogCodeObjects();
292 291
293 // Converts tag to a corresponding NATIVE_... if the script is native. 292 // Converts tag to a corresponding NATIVE_... if the script is native.
294 INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*)); 293 INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*));
295 294
296 // Profiler's sampling interval (in milliseconds). 295 // Profiler's sampling interval (in milliseconds).
297 static const int kSamplingIntervalMs = 1; 296 static const int kSamplingIntervalMs = 1;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 // Class that extracts stack trace, used for profiling. 436 // Class that extracts stack trace, used for profiling.
438 class StackTracer : public AllStatic { 437 class StackTracer : public AllStatic {
439 public: 438 public:
440 static void Trace(Isolate* isolate, TickSample* sample); 439 static void Trace(Isolate* isolate, TickSample* sample);
441 }; 440 };
442 441
443 } } // namespace v8::internal 442 } } // namespace v8::internal
444 443
445 444
446 #endif // V8_LOG_H_ 445 #endif // V8_LOG_H_
OLDNEW
« no previous file with comments | « src/liveobjectlist-inl.h ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698