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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 static void DeleteEvent(const char* name, void* object); | 127 static void DeleteEvent(const char* name, void* object); |
128 | 128 |
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 static void ResourceEvent(const char* name, const char* tag); | 133 static 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 static void SuspectReadEvent(String* name, String* obj); | 137 static void SuspectReadEvent(String* name, Object* obj); |
138 | 138 |
139 // Emits an event when a message is put on or read from a debugging queue. | 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. | 140 // DebugTag lets us put a call-site specific label on the event. |
141 static void DebugTag(const char* call_site_tag); | 141 static void DebugTag(const char* call_site_tag); |
142 static void DebugEvent(const char* event_type, Vector<uint16_t> parameter); | 142 static void DebugEvent(const char* event_type, Vector<uint16_t> parameter); |
143 | 143 |
144 | 144 |
145 // ==== Events logged by --log-api. ==== | 145 // ==== Events logged by --log-api. ==== |
146 static void ApiNamedSecurityCheck(Object* key); | 146 static void ApiNamedSecurityCheck(Object* key); |
147 static void ApiIndexedSecurityCheck(uint32_t index); | 147 static void ApiIndexedSecurityCheck(uint32_t index); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 friend class Profiler; | 236 friend class Profiler; |
237 friend class SlidingStateWindow; | 237 friend class SlidingStateWindow; |
238 friend class VMState; | 238 friend class VMState; |
239 #endif | 239 #endif |
240 }; | 240 }; |
241 | 241 |
242 | 242 |
243 } } // namespace v8::internal | 243 } } // namespace v8::internal |
244 | 244 |
245 #endif // V8_LOG_H_ | 245 #endif // V8_LOG_H_ |
OLD | NEW |