| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_LOG_H_ | 5 #ifndef V8_LOG_H_ |
| 6 #define V8_LOG_H_ | 6 #define V8_LOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // Emits an event with a tag, and some resource usage information. | 129 // Emits an event with a tag, and some resource usage information. |
| 130 // -> (name, tag, <rusage information>). | 130 // -> (name, tag, <rusage information>). |
| 131 // Currently, the resource usage information is a process time stamp | 131 // Currently, the resource usage information is a process time stamp |
| 132 // and a real time timestamp. | 132 // and a real time timestamp. |
| 133 void ResourceEvent(const char* name, const char* tag); | 133 void ResourceEvent(const char* name, const char* tag); |
| 134 | 134 |
| 135 // Emits an event that an undefined property was read from an | 135 // Emits an event that an undefined property was read from an |
| 136 // object. | 136 // object. |
| 137 void SuspectReadEvent(Name* name, Object* obj); | 137 void SuspectReadEvent(Name* name, Object* obj); |
| 138 | 138 |
| 139 // Emits an event when a message is put on or read from a debugging queue. |
| 140 // DebugTag lets us put a call-site specific label on the event. |
| 141 void DebugTag(const char* call_site_tag); |
| 142 void DebugEvent(const char* event_type, Vector<uint16_t> parameter); |
| 143 |
| 144 |
| 139 // ==== Events logged by --log-api. ==== | 145 // ==== Events logged by --log-api. ==== |
| 140 void ApiSecurityCheck(); | 146 void ApiSecurityCheck(); |
| 141 void ApiNamedPropertyAccess(const char* tag, JSObject* holder, Object* name); | 147 void ApiNamedPropertyAccess(const char* tag, JSObject* holder, Object* name); |
| 142 void ApiIndexedPropertyAccess(const char* tag, | 148 void ApiIndexedPropertyAccess(const char* tag, |
| 143 JSObject* holder, | 149 JSObject* holder, |
| 144 uint32_t index); | 150 uint32_t index); |
| 145 void ApiObjectAccess(const char* tag, JSObject* obj); | 151 void ApiObjectAccess(const char* tag, JSObject* obj); |
| 146 void ApiEntryCall(const char* name); | 152 void ApiEntryCall(const char* name); |
| 147 | 153 |
| 148 // ==== Events logged by --log-code. ==== | 154 // ==== Events logged by --log-code. ==== |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 | 400 |
| 395 NameBuffer* name_buffer_; | 401 NameBuffer* name_buffer_; |
| 396 }; | 402 }; |
| 397 | 403 |
| 398 | 404 |
| 399 } // namespace internal | 405 } // namespace internal |
| 400 } // namespace v8 | 406 } // namespace v8 |
| 401 | 407 |
| 402 | 408 |
| 403 #endif // V8_LOG_H_ | 409 #endif // V8_LOG_H_ |
| OLD | NEW |