| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 static void DeleteEventStatic(const char* name, void* object); | 194 static void DeleteEventStatic(const char* name, void* object); |
| 195 | 195 |
| 196 // Emits an event with a tag, and some resource usage information. | 196 // Emits an event with a tag, and some resource usage information. |
| 197 // -> (name, tag, <rusage information>). | 197 // -> (name, tag, <rusage information>). |
| 198 // Currently, the resource usage information is a process time stamp | 198 // Currently, the resource usage information is a process time stamp |
| 199 // and a real time timestamp. | 199 // and a real time timestamp. |
| 200 void ResourceEvent(const char* name, const char* tag); | 200 void ResourceEvent(const char* name, const char* tag); |
| 201 | 201 |
| 202 // Emits an event that an undefined property was read from an | 202 // Emits an event that an undefined property was read from an |
| 203 // object. | 203 // object. |
| 204 void SuspectReadEvent(String* name, Object* obj); | 204 void SuspectReadEvent(Name* name, Object* obj); |
| 205 | 205 |
| 206 // Emits an event when a message is put on or read from a debugging queue. | 206 // Emits an event when a message is put on or read from a debugging queue. |
| 207 // DebugTag lets us put a call-site specific label on the event. | 207 // DebugTag lets us put a call-site specific label on the event. |
| 208 void DebugTag(const char* call_site_tag); | 208 void DebugTag(const char* call_site_tag); |
| 209 void DebugEvent(const char* event_type, Vector<uint16_t> parameter); | 209 void DebugEvent(const char* event_type, Vector<uint16_t> parameter); |
| 210 | 210 |
| 211 | 211 |
| 212 // ==== Events logged by --log-api. ==== | 212 // ==== Events logged by --log-api. ==== |
| 213 void ApiNamedSecurityCheck(Object* key); | 213 void ApiNamedSecurityCheck(Object* key); |
| 214 void ApiIndexedSecurityCheck(uint32_t index); | 214 void ApiIndexedSecurityCheck(uint32_t index); |
| 215 void ApiNamedPropertyAccess(const char* tag, JSObject* holder, Object* name); | 215 void ApiNamedPropertyAccess(const char* tag, JSObject* holder, Object* name); |
| 216 void ApiIndexedPropertyAccess(const char* tag, | 216 void ApiIndexedPropertyAccess(const char* tag, |
| 217 JSObject* holder, | 217 JSObject* holder, |
| 218 uint32_t index); | 218 uint32_t index); |
| 219 void ApiObjectAccess(const char* tag, JSObject* obj); | 219 void ApiObjectAccess(const char* tag, JSObject* obj); |
| 220 void ApiEntryCall(const char* name); | 220 void ApiEntryCall(const char* name); |
| 221 | 221 |
| 222 | 222 |
| 223 // ==== Events logged by --log-code. ==== | 223 // ==== Events logged by --log-code. ==== |
| 224 // Emits a code event for a callback function. | 224 // Emits a code event for a callback function. |
| 225 void CallbackEvent(String* name, Address entry_point); | 225 void CallbackEvent(Name* name, Address entry_point); |
| 226 void GetterCallbackEvent(String* name, Address entry_point); | 226 void GetterCallbackEvent(Name* name, Address entry_point); |
| 227 void SetterCallbackEvent(String* name, Address entry_point); | 227 void SetterCallbackEvent(Name* name, Address entry_point); |
| 228 // Emits a code create event. | 228 // Emits a code create event. |
| 229 void CodeCreateEvent(LogEventsAndTags tag, | 229 void CodeCreateEvent(LogEventsAndTags tag, |
| 230 Code* code, const char* source); | 230 Code* code, const char* source); |
| 231 void CodeCreateEvent(LogEventsAndTags tag, | 231 void CodeCreateEvent(LogEventsAndTags tag, |
| 232 Code* code, String* name); | 232 Code* code, Name* name); |
| 233 void CodeCreateEvent(LogEventsAndTags tag, | 233 void CodeCreateEvent(LogEventsAndTags tag, |
| 234 Code* code, | 234 Code* code, |
| 235 SharedFunctionInfo* shared, | 235 SharedFunctionInfo* shared, |
| 236 String* name); | 236 Name* name); |
| 237 void CodeCreateEvent(LogEventsAndTags tag, | 237 void CodeCreateEvent(LogEventsAndTags tag, |
| 238 Code* code, | 238 Code* code, |
| 239 SharedFunctionInfo* shared, | 239 SharedFunctionInfo* shared, |
| 240 String* source, int line); | 240 Name* source, int line); |
| 241 void CodeCreateEvent(LogEventsAndTags tag, Code* code, int args_count); | 241 void CodeCreateEvent(LogEventsAndTags tag, Code* code, int args_count); |
| 242 void CodeMovingGCEvent(); | 242 void CodeMovingGCEvent(); |
| 243 // Emits a code create event for a RegExp. | 243 // Emits a code create event for a RegExp. |
| 244 void RegExpCodeCreateEvent(Code* code, String* source); | 244 void RegExpCodeCreateEvent(Code* code, String* source); |
| 245 // Emits a code move event. | 245 // Emits a code move event. |
| 246 void CodeMoveEvent(Address from, Address to); | 246 void CodeMoveEvent(Address from, Address to); |
| 247 // Emits a code delete event. | 247 // Emits a code delete event. |
| 248 void CodeDeleteEvent(Address from); | 248 void CodeDeleteEvent(Address from); |
| 249 | 249 |
| 250 void SharedFunctionInfoMoveEvent(Address from, Address to); | 250 void SharedFunctionInfoMoveEvent(Address from, Address to); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 // Issue code notifications. | 361 // Issue code notifications. |
| 362 void IssueCodeAddedEvent(Code* code, const char* name, size_t name_len); | 362 void IssueCodeAddedEvent(Code* code, const char* name, size_t name_len); |
| 363 void IssueCodeMovedEvent(Address from, Address to); | 363 void IssueCodeMovedEvent(Address from, Address to); |
| 364 void IssueCodeRemovedEvent(Address from); | 364 void IssueCodeRemovedEvent(Address from); |
| 365 | 365 |
| 366 // Emits the profiler's first message. | 366 // Emits the profiler's first message. |
| 367 void ProfilerBeginEvent(); | 367 void ProfilerBeginEvent(); |
| 368 | 368 |
| 369 // Emits callback event messages. | 369 // Emits callback event messages. |
| 370 void CallbackEventInternal(const char* prefix, | 370 void CallbackEventInternal(const char* prefix, |
| 371 const char* name, | 371 Name* name, |
| 372 Address entry_point); | 372 Address entry_point); |
| 373 | 373 |
| 374 // Internal configurable move event. | 374 // Internal configurable move event. |
| 375 void MoveEventInternal(LogEventsAndTags event, Address from, Address to); | 375 void MoveEventInternal(LogEventsAndTags event, Address from, Address to); |
| 376 | 376 |
| 377 // Internal configurable move event. | 377 // Internal configurable move event. |
| 378 void DeleteEventInternal(LogEventsAndTags event, Address from); | 378 void DeleteEventInternal(LogEventsAndTags event, Address from); |
| 379 | 379 |
| 380 // Emits the source code of a regexp. Used by regexp events. | 380 // Emits the source code of a regexp. Used by regexp events. |
| 381 void LogRegExpSource(Handle<JSRegExp> regexp); | 381 void LogRegExpSource(Handle<JSRegExp> regexp); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 // Class that extracts stack trace, used for profiling. | 516 // Class that extracts stack trace, used for profiling. |
| 517 class StackTracer : public AllStatic { | 517 class StackTracer : public AllStatic { |
| 518 public: | 518 public: |
| 519 static void Trace(Isolate* isolate, TickSample* sample); | 519 static void Trace(Isolate* isolate, TickSample* sample); |
| 520 }; | 520 }; |
| 521 | 521 |
| 522 } } // namespace v8::internal | 522 } } // namespace v8::internal |
| 523 | 523 |
| 524 | 524 |
| 525 #endif // V8_LOG_H_ | 525 #endif // V8_LOG_H_ |
| OLD | NEW |