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 50 matching lines...) Loading... |
61 // Collect statistical profiling information (ticks), default is off. The | 61 // Collect statistical profiling information (ticks), default is off. The |
62 // tick profiler requires code events, so --prof implies --log-code. | 62 // tick profiler requires code events, so --prof implies --log-code. |
63 | 63 |
64 // Forward declarations. | 64 // Forward declarations. |
65 class CodeEventListener; | 65 class CodeEventListener; |
66 class CpuProfiler; | 66 class CpuProfiler; |
67 class Isolate; | 67 class Isolate; |
68 class Log; | 68 class Log; |
69 class Profiler; | 69 class Profiler; |
70 class Ticker; | 70 class Ticker; |
| 71 class RuntimeCallTimer; |
71 struct TickSample; | 72 struct TickSample; |
72 class RuntimeCallTimer; | |
73 | 73 |
74 #undef LOG | 74 #undef LOG |
75 #define LOG(isolate, Call) \ | 75 #define LOG(isolate, Call) \ |
76 do { \ | 76 do { \ |
77 v8::internal::Logger* logger = (isolate)->logger(); \ | 77 v8::internal::Logger* logger = (isolate)->logger(); \ |
78 if (logger->is_logging()) logger->Call; \ | 78 if (logger->is_logging()) logger->Call; \ |
79 } while (false) | 79 } while (false) |
80 | 80 |
81 #define LOG_CODE_EVENT(isolate, Call) \ | 81 #define LOG_CODE_EVENT(isolate, Call) \ |
82 do { \ | 82 do { \ |
(...skipping 340 matching lines...) Loading... |
423 | 423 |
424 NameBuffer* name_buffer_; | 424 NameBuffer* name_buffer_; |
425 }; | 425 }; |
426 | 426 |
427 | 427 |
428 } // namespace internal | 428 } // namespace internal |
429 } // namespace v8 | 429 } // namespace v8 |
430 | 430 |
431 | 431 |
432 #endif // V8_LOG_H_ | 432 #endif // V8_LOG_H_ |
OLD | NEW |