| Index: src/log-inl.h
|
| diff --git a/src/log-inl.h b/src/log-inl.h
|
| index 28677ad235dc7ce59c4886cbc8dbf711393fe8cf..22ea800585c326866cc8dc1efab35b7c19966d2a 100644
|
| --- a/src/log-inl.h
|
| +++ b/src/log-inl.h
|
| @@ -6,6 +6,7 @@
|
| #define V8_LOG_INL_H_
|
|
|
| #include "src/log.h"
|
| +#include "src/isolate.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -26,6 +27,14 @@ Logger::LogEventsAndTags Logger::ToNativeByScript(Logger::LogEventsAndTags tag,
|
| }
|
|
|
|
|
| +void Logger::CallEventLogger(Isolate* isolate, const char* name, StartEnd se,
|
| + bool expose_to_api) {
|
| + if (isolate->event_logger() == NULL) {
|
| + if (FLAG_log_internal_timer_events) LOG(isolate, TimerEvent(se, name));
|
| + } else if (expose_to_api) {
|
| + isolate->event_logger()(name, se);
|
| + }
|
| +}
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_LOG_INL_H_
|
|
|