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 | |
145 // ==== Events logged by --log-api. ==== | 139 // ==== Events logged by --log-api. ==== |
146 void ApiSecurityCheck(); | 140 void ApiSecurityCheck(); |
147 void ApiNamedPropertyAccess(const char* tag, JSObject* holder, Object* name); | 141 void ApiNamedPropertyAccess(const char* tag, JSObject* holder, Object* name); |
148 void ApiIndexedPropertyAccess(const char* tag, | 142 void ApiIndexedPropertyAccess(const char* tag, |
149 JSObject* holder, | 143 JSObject* holder, |
150 uint32_t index); | 144 uint32_t index); |
151 void ApiObjectAccess(const char* tag, JSObject* obj); | 145 void ApiObjectAccess(const char* tag, JSObject* obj); |
152 void ApiEntryCall(const char* name); | 146 void ApiEntryCall(const char* name); |
153 | 147 |
154 // ==== Events logged by --log-code. ==== | 148 // ==== Events logged by --log-code. ==== |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 394 |
401 NameBuffer* name_buffer_; | 395 NameBuffer* name_buffer_; |
402 }; | 396 }; |
403 | 397 |
404 | 398 |
405 } // namespace internal | 399 } // namespace internal |
406 } // namespace v8 | 400 } // namespace v8 |
407 | 401 |
408 | 402 |
409 #endif // V8_LOG_H_ | 403 #endif // V8_LOG_H_ |
OLD | NEW |