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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 106 |
107 // Enable the computation of a sliding window of states. | 107 // Enable the computation of a sliding window of states. |
108 static void EnableSlidingStateWindow(); | 108 static void EnableSlidingStateWindow(); |
109 | 109 |
110 // Write a raw string to the log to be used as a preamble. | 110 // Write a raw string to the log to be used as a preamble. |
111 // No check is made that the 'preamble' is actually at the beginning | 111 // No check is made that the 'preamble' is actually at the beginning |
112 // of the log. The preample is used to write code events saved in the | 112 // of the log. The preample is used to write code events saved in the |
113 // snapshot. | 113 // snapshot. |
114 static void Preamble(const char* content); | 114 static void Preamble(const char* content); |
115 | 115 |
116 // ==== Events that are always logged. ==== | |
117 // Emits an event with a string value -> (name, value). | 116 // Emits an event with a string value -> (name, value). |
118 static void StringEvent(const char* name, const char* value); | 117 static void StringEvent(const char* name, const char* value); |
119 | 118 |
120 // Emits an event with an int value -> (name, value). | 119 // Emits an event with an int value -> (name, value). |
121 static void IntEvent(const char* name, int value); | 120 static void IntEvent(const char* name, int value); |
122 | 121 |
123 // Emits an event with an handle value -> (name, location). | 122 // Emits an event with an handle value -> (name, location). |
124 static void HandleEvent(const char* name, Object** location); | 123 static void HandleEvent(const char* name, Object** location); |
125 | 124 |
126 // Emits memory management events for C allocated structures. | 125 // Emits memory management events for C allocated structures. |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 friend class Profiler; | 236 friend class Profiler; |
238 friend class SlidingStateWindow; | 237 friend class SlidingStateWindow; |
239 friend class VMState; | 238 friend class VMState; |
240 #endif | 239 #endif |
241 }; | 240 }; |
242 | 241 |
243 | 242 |
244 } } // namespace v8::internal | 243 } } // namespace v8::internal |
245 | 244 |
246 #endif // V8_LOG_H_ | 245 #endif // V8_LOG_H_ |
OLD | NEW |