| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 // Emits a code delete event. | 210 // Emits a code delete event. |
| 211 static void CodeDeleteEvent(Address from); | 211 static void CodeDeleteEvent(Address from); |
| 212 | 212 |
| 213 // ==== Events logged by --log-gc. ==== | 213 // ==== Events logged by --log-gc. ==== |
| 214 // Heap sampling events: start, end, and individual types. | 214 // Heap sampling events: start, end, and individual types. |
| 215 static void HeapSampleBeginEvent(const char* space, const char* kind); | 215 static void HeapSampleBeginEvent(const char* space, const char* kind); |
| 216 static void HeapSampleEndEvent(const char* space, const char* kind); | 216 static void HeapSampleEndEvent(const char* space, const char* kind); |
| 217 static void HeapSampleItemEvent(const char* type, int number, int bytes); | 217 static void HeapSampleItemEvent(const char* type, int number, int bytes); |
| 218 | 218 |
| 219 static void SharedLibraryEvent(const char* library_path, | 219 static void SharedLibraryEvent(const char* library_path, |
| 220 unsigned start, | 220 uintptr_t start, |
| 221 unsigned end); | 221 uintptr_t end); |
| 222 static void SharedLibraryEvent(const wchar_t* library_path, | 222 static void SharedLibraryEvent(const wchar_t* library_path, |
| 223 unsigned start, | 223 uintptr_t start, |
| 224 unsigned end); | 224 uintptr_t end); |
| 225 | 225 |
| 226 // ==== Events logged by --log-regexp ==== | 226 // ==== Events logged by --log-regexp ==== |
| 227 // Regexp compilation and execution events. | 227 // Regexp compilation and execution events. |
| 228 | 228 |
| 229 static void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); | 229 static void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache); |
| 230 | 230 |
| 231 // Log an event reported from generated code | 231 // Log an event reported from generated code |
| 232 static void LogRuntime(Vector<const char> format, JSArray* args); | 232 static void LogRuntime(Vector<const char> format, JSArray* args); |
| 233 | 233 |
| 234 #ifdef ENABLE_LOGGING_AND_PROFILING | 234 #ifdef ENABLE_LOGGING_AND_PROFILING |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 // Class that extracts stack trace, used for profiling. | 326 // Class that extracts stack trace, used for profiling. |
| 327 class StackTracer : public AllStatic { | 327 class StackTracer : public AllStatic { |
| 328 public: | 328 public: |
| 329 static void Trace(TickSample* sample); | 329 static void Trace(TickSample* sample); |
| 330 }; | 330 }; |
| 331 | 331 |
| 332 | 332 |
| 333 } } // namespace v8::internal | 333 } } // namespace v8::internal |
| 334 | 334 |
| 335 #endif // V8_LOG_H_ | 335 #endif // V8_LOG_H_ |
| OLD | NEW |