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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // data collection is Resumed. | 211 // data collection is Resumed. |
212 static bool IsProfilerPaused(); | 212 static bool IsProfilerPaused(); |
213 static void PauseProfiler(); | 213 static void PauseProfiler(); |
214 static void ResumeProfiler(); | 214 static void ResumeProfiler(); |
215 | 215 |
216 private: | 216 private: |
217 | 217 |
218 // Emits the source code of a regexp. Used by regexp events. | 218 // Emits the source code of a regexp. Used by regexp events. |
219 static void LogRegExpSource(Handle<JSRegExp> regexp); | 219 static void LogRegExpSource(Handle<JSRegExp> regexp); |
220 | 220 |
221 static void LogString(Handle<String> str, bool show_impl_info); | |
222 | |
223 // Emits a profiler tick event. Used by the profiler thread. | 221 // Emits a profiler tick event. Used by the profiler thread. |
224 static void TickEvent(TickSample* sample, bool overflow); | 222 static void TickEvent(TickSample* sample, bool overflow); |
225 | 223 |
226 static void ApiEvent(const char* name, ...); | 224 static void ApiEvent(const char* name, ...); |
227 | 225 |
228 // Logs a StringEvent regardless of whether FLAG_log is true. | 226 // Logs a StringEvent regardless of whether FLAG_log is true. |
229 static void UncheckedStringEvent(const char* name, const char* value); | 227 static void UncheckedStringEvent(const char* name, const char* value); |
230 | 228 |
231 // Size of buffer used for formatting log messages. | 229 // Size of buffer used for formatting log messages. |
232 static const int kMessageBufferSize = 256; | 230 static const int kMessageBufferSize = 256; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 friend class Profiler; | 264 friend class Profiler; |
267 friend class SlidingStateWindow; | 265 friend class SlidingStateWindow; |
268 friend class VMState; | 266 friend class VMState; |
269 #endif | 267 #endif |
270 }; | 268 }; |
271 | 269 |
272 | 270 |
273 } } // namespace v8::internal | 271 } } // namespace v8::internal |
274 | 272 |
275 #endif // V8_LOG_H_ | 273 #endif // V8_LOG_H_ |
OLD | NEW |