V8 Project
|
#include <log.h>
Public Types | |
enum | StartEnd { START = 0 , END = 1 } |
enum | LogEventsAndTags { NUMBER_OF_LOG_EVENTS } |
Public Member Functions | |
bool | SetUp (Isolate *isolate) |
void | SetCodeEventHandler (uint32_t options, JitCodeEventHandler event_handler) |
Sampler * | sampler () |
FILE * | TearDown () |
void | StringEvent (const char *name, const char *value) |
void | IntEvent (const char *name, int value) |
void | IntPtrTEvent (const char *name, intptr_t value) |
void | HandleEvent (const char *name, Object **location) |
void | NewEvent (const char *name, void *object, size_t size) |
void | DeleteEvent (const char *name, void *object) |
void | ResourceEvent (const char *name, const char *tag) |
void | SuspectReadEvent (Name *name, Object *obj) |
void | DebugTag (const char *call_site_tag) |
void | DebugEvent (const char *event_type, Vector< uint16_t > parameter) |
void | ApiNamedSecurityCheck (Object *key) |
void | ApiIndexedSecurityCheck (uint32_t index) |
void | ApiNamedPropertyAccess (const char *tag, JSObject *holder, Object *name) |
void | ApiIndexedPropertyAccess (const char *tag, JSObject *holder, uint32_t index) |
void | ApiObjectAccess (const char *tag, JSObject *obj) |
void | ApiEntryCall (const char *name) |
void | addCodeEventListener (CodeEventListener *listener) |
void | removeCodeEventListener (CodeEventListener *listener) |
bool | hasCodeEventListener (CodeEventListener *listener) |
void | CallbackEvent (Name *name, Address entry_point) |
void | GetterCallbackEvent (Name *name, Address entry_point) |
void | SetterCallbackEvent (Name *name, Address entry_point) |
void | CodeCreateEvent (LogEventsAndTags tag, Code *code, const char *source) |
void | CodeCreateEvent (LogEventsAndTags tag, Code *code, Name *name) |
void | CodeCreateEvent (LogEventsAndTags tag, Code *code, SharedFunctionInfo *shared, CompilationInfo *info, Name *name) |
void | CodeCreateEvent (LogEventsAndTags tag, Code *code, SharedFunctionInfo *shared, CompilationInfo *info, Name *source, int line, int column) |
void | CodeCreateEvent (LogEventsAndTags tag, Code *code, int args_count) |
void | CodeDisableOptEvent (Code *code, SharedFunctionInfo *shared) |
void | CodeMovingGCEvent () |
void | RegExpCodeCreateEvent (Code *code, String *source) |
void | CodeMoveEvent (Address from, Address to) |
void | CodeDeleteEvent (Address from) |
void | CodeLinePosInfoAddPositionEvent (void *jit_handler_data, int pc_offset, int position) |
void | CodeLinePosInfoAddStatementPositionEvent (void *jit_handler_data, int pc_offset, int position) |
void | CodeStartLinePosInfoRecordEvent (PositionsRecorder *pos_recorder) |
void | CodeEndLinePosInfoRecordEvent (Code *code, void *jit_handler_data) |
void | SharedFunctionInfoMoveEvent (Address from, Address to) |
void | CodeNameEvent (Address addr, int pos, const char *code_name) |
void | SnapshotPositionEvent (Address addr, int pos) |
void | HeapSampleBeginEvent (const char *space, const char *kind) |
void | HeapSampleEndEvent (const char *space, const char *kind) |
void | HeapSampleItemEvent (const char *type, int number, int bytes) |
void | HeapSampleJSConstructorEvent (const char *constructor, int number, int bytes) |
void | HeapSampleJSRetainersEvent (const char *constructor, const char *event) |
void | HeapSampleJSProducerEvent (const char *constructor, Address *stack) |
void | HeapSampleStats (const char *space, const char *kind, intptr_t capacity, intptr_t used) |
void | SharedLibraryEvent (const std::string &library_path, uintptr_t start, uintptr_t end) |
void | CodeDeoptEvent (Code *code) |
void | CurrentTimeEvent () |
void | TimerEvent (StartEnd se, const char *name) |
void | RegExpCompileEvent (Handle< JSRegExp > regexp, bool in_cache) |
bool | is_logging () |
bool | is_logging_code_events () |
void | StopProfiler () |
void | LogExistingFunction (Handle< SharedFunctionInfo > shared, Handle< Code > code) |
void | LogCompiledFunctions () |
void | LogAccessorCallbacks () |
void | LogCodeObjects () |
INLINE (static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script *)) | |
void | LogFailure () |
Static Public Member Functions | |
static void | NewEventStatic (const char *name, void *object, size_t size) |
static void | DeleteEventStatic (const char *name, void *object) |
static void | EnterExternal (Isolate *isolate) |
static void | LeaveExternal (Isolate *isolate) |
static void | EmptyTimerEventsLogger (const char *name, int se) |
static void | DefaultTimerEventsLogger (const char *name, int se) |
Static Public Attributes | |
static const int | kSamplingIntervalMs = 1 |
Private Member Functions | |
Logger (Isolate *isolate) | |
~Logger () | |
void | ProfilerBeginEvent () |
void | CallbackEventInternal (const char *prefix, Name *name, Address entry_point) |
void | MoveEventInternal (LogEventsAndTags event, Address from, Address to) |
void | LogRegExpSource (Handle< JSRegExp > regexp) |
void | LogCodeObject (Object *code_object) |
void | InitNameBuffer (LogEventsAndTags tag) |
void | TickEvent (TickSample *sample, bool overflow) |
void | ApiEvent (const char *name,...) |
void | UncheckedStringEvent (const char *name, const char *value) |
void | UncheckedIntEvent (const char *name, int value) |
void | UncheckedIntPtrTEvent (const char *name, intptr_t value) |
Private Attributes | |
Isolate * | isolate_ |
Ticker * | ticker_ |
Profiler * | profiler_ |
const char *const * | log_events_ |
bool | is_logging_ |
Log * | log_ |
PerfBasicLogger * | perf_basic_logger_ |
PerfJitLogger * | perf_jit_logger_ |
LowLevelLogger * | ll_logger_ |
JitLogger * | jit_logger_ |
List< CodeEventListener * > | listeners_ |
bool | is_initialized_ |
base::ElapsedTimer | timer_ |
Friends | |
class | EventLog |
class | Isolate |
class | TimeLog |
class | Profiler |
template<StateTag Tag> | |
class | VMState |
class | LoggerTestHelper |
class | CpuProfiler |
|
explicitprivate |
Definition at line 765 of file log.cc.
|
private |
void v8::internal::Logger::addCodeEventListener | ( | CodeEventListener * | listener | ) |
Definition at line 786 of file log.cc.
References DCHECK, hasCodeEventListener(), and listeners_.
Referenced by v8::internal::CodeAddressMap::CodeAddressMap(), SetCodeEventHandler(), and SetUp().
void v8::internal::Logger::ApiEntryCall | ( | const char * | name | ) |
Definition at line 1085 of file log.cc.
References ApiEvent(), v8::internal::Log::IsEnabled(), log_, and name.
|
private |
Definition at line 861 of file log.cc.
References DCHECK, v8::internal::Log::IsEnabled(), and log_.
Referenced by ApiEntryCall(), ApiIndexedPropertyAccess(), ApiIndexedSecurityCheck(), ApiNamedPropertyAccess(), ApiNamedSecurityCheck(), and ApiObjectAccess().
void v8::internal::Logger::ApiIndexedPropertyAccess | ( | const char * | tag, |
JSObject * | holder, | ||
uint32_t | index | ||
) |
Definition at line 1065 of file log.cc.
References ApiEvent(), v8::internal::JSReceiver::class_name(), v8::internal::DISALLOW_NULLS, v8::internal::SmartPointerBase< Deallocator, T >::get(), v8::internal::Log::IsEnabled(), log_, v8::internal::ROBUST_STRING_TRAVERSAL, and v8::internal::String::ToCString().
void v8::internal::Logger::ApiIndexedSecurityCheck | ( | uint32_t | index | ) |
Definition at line 1032 of file log.cc.
References ApiEvent(), v8::internal::Log::IsEnabled(), and log_.
void v8::internal::Logger::ApiNamedPropertyAccess | ( | const char * | tag, |
JSObject * | holder, | ||
Object * | name | ||
) |
Definition at line 1038 of file log.cc.
References ApiEvent(), v8::internal::JSReceiver::class_name(), DCHECK, v8::internal::DISALLOW_NULLS, v8::internal::SmartPointerBase< Deallocator, T >::get(), v8::internal::Name::Hash(), v8::internal::Log::IsEnabled(), log_, name, v8::internal::ROBUST_STRING_TRAVERSAL, and v8::internal::String::ToCString().
void v8::internal::Logger::ApiNamedSecurityCheck | ( | Object * | key | ) |
Definition at line 872 of file log.cc.
References ApiEvent(), v8::internal::DISALLOW_NULLS, v8::internal::SmartPointerBase< Deallocator, T >::get(), v8::internal::Hash(), v8::internal::Log::IsEnabled(), log_, and v8::internal::ROBUST_STRING_TRAVERSAL.
void v8::internal::Logger::ApiObjectAccess | ( | const char * | tag, |
JSObject * | obj | ||
) |
Definition at line 1076 of file log.cc.
References ApiEvent(), v8::internal::DISALLOW_NULLS, v8::internal::SmartPointerBase< Deallocator, T >::get(), v8::internal::Log::IsEnabled(), log_, v8::internal::ROBUST_STRING_TRAVERSAL, and v8::internal::String::ToCString().
Definition at line 1145 of file log.cc.
References CallbackEventInternal(), name, and PROFILER_LOG.
Referenced by LogExistingFunction().
|
private |
Definition at line 1118 of file log.cc.
References v8::internal::DISALLOW_NULLS, v8::internal::SmartPointerBase< Deallocator, T >::get(), v8::internal::Name::Hash(), v8::internal::Log::IsEnabled(), v8::internal::kLogEventsNames, log_, name, and v8::internal::ROBUST_STRING_TRAVERSAL.
Referenced by CallbackEvent(), GetterCallbackEvent(), and SetterCallbackEvent().
void v8::internal::Logger::CodeCreateEvent | ( | LogEventsAndTags | tag, |
Code * | code, | ||
const char * | source | ||
) |
Definition at line 1176 of file log.cc.
References v8::internal::AppendCodeCreateHeader(), CALL_LISTENERS, is_logging_code_events(), v8::internal::Log::IsEnabled(), log_, and PROFILER_LOG.
Referenced by CodeCreateEvent(), LogCodeObject(), and LogExistingFunction().
void v8::internal::Logger::CodeCreateEvent | ( | LogEventsAndTags | tag, |
Code * | code, | ||
int | args_count | ||
) |
Definition at line 1277 of file log.cc.
References v8::internal::AppendCodeCreateHeader(), CALL_LISTENERS, CodeCreateEvent(), is_logging_code_events(), v8::internal::Log::IsEnabled(), log_, and PROFILER_LOG.
void v8::internal::Logger::CodeCreateEvent | ( | LogEventsAndTags | tag, |
Code * | code, | ||
Name * | name | ||
) |
Definition at line 1192 of file log.cc.
References v8::internal::AppendCodeCreateHeader(), CALL_LISTENERS, CodeCreateEvent(), is_logging_code_events(), v8::internal::Log::IsEnabled(), log_, name, and PROFILER_LOG.
void v8::internal::Logger::CodeCreateEvent | ( | LogEventsAndTags | tag, |
Code * | code, | ||
SharedFunctionInfo * | shared, | ||
CompilationInfo * | info, | ||
Name * | name | ||
) |
Definition at line 1214 of file log.cc.
References v8::internal::HeapObject::address(), v8::internal::AppendCodeCreateHeader(), v8::internal::Builtins::builtin(), v8::internal::Isolate::builtins(), CALL_LISTENERS, CodeCreateEvent(), v8::internal::ComputeMarker(), v8::internal::DISALLOW_NULLS, v8::internal::SmartPointerBase< Deallocator, T >::get(), is_logging_code_events(), v8::internal::Log::IsEnabled(), isolate_, log_, name, PROFILER_LOG, and v8::internal::ROBUST_STRING_TRAVERSAL.
void v8::internal::Logger::CodeCreateEvent | ( | LogEventsAndTags | tag, |
Code * | code, | ||
SharedFunctionInfo * | shared, | ||
CompilationInfo * | info, | ||
Name * | source, | ||
int | line, | ||
int | column | ||
) |
Definition at line 1246 of file log.cc.
References v8::internal::HeapObject::address(), v8::internal::AppendCodeCreateHeader(), CALL_LISTENERS, CodeCreateEvent(), v8::internal::ComputeMarker(), v8::internal::SharedFunctionInfo::DebugName(), v8::internal::DISALLOW_NULLS, v8::internal::SmartPointerBase< Deallocator, T >::get(), is_logging_code_events(), v8::internal::Log::IsEnabled(), log_, name, PROFILER_LOG, v8::internal::ROBUST_STRING_TRAVERSAL, and v8::internal::String::ToCString().
void v8::internal::Logger::CodeDeleteEvent | ( | Address | from | ) |
Definition at line 1346 of file log.cc.
References CALL_LISTENERS, is_logging_code_events(), v8::internal::Log::IsEnabled(), v8::internal::kLogEventsNames, log_, and PROFILER_LOG.
void v8::internal::Logger::CodeDeoptEvent | ( | Code * | code | ) |
Definition at line 907 of file log.cc.
References v8::internal::Code::CodeSize(), DCHECK, v8::internal::Log::IsEnabled(), log_, and timer_.
void v8::internal::Logger::CodeDisableOptEvent | ( | Code * | code, |
SharedFunctionInfo * | shared | ||
) |
Definition at line 1293 of file log.cc.
References CALL_LISTENERS, v8::internal::SharedFunctionInfo::DebugName(), v8::internal::SharedFunctionInfo::DisableOptimizationReason(), v8::internal::DISALLOW_NULLS, v8::internal::GetBailoutReason(), is_logging_code_events(), v8::internal::Log::IsEnabled(), v8::internal::kLogEventsNames, log_, name, PROFILER_LOG, v8::internal::ROBUST_STRING_TRAVERSAL, and v8::internal::String::ToCString().
void v8::internal::Logger::CodeEndLinePosInfoRecordEvent | ( | Code * | code, |
void * | jit_handler_data | ||
) |
void v8::internal::Logger::CodeLinePosInfoAddPositionEvent | ( | void * | jit_handler_data, |
int | pc_offset, | ||
int | position | ||
) |
void v8::internal::Logger::CodeLinePosInfoAddStatementPositionEvent | ( | void * | jit_handler_data, |
int | pc_offset, | ||
int | position | ||
) |
Definition at line 1370 of file log.cc.
References JIT_LOG, and v8::JitCodeEvent::STATEMENT_POSITION.
Definition at line 1337 of file log.cc.
References CALL_LISTENERS, is_logging_code_events(), MoveEventInternal(), PROFILER_LOG, and to().
void v8::internal::Logger::CodeMovingGCEvent | ( | ) |
Definition at line 1311 of file log.cc.
References CALL_LISTENERS, is_logging_code_events(), v8::internal::Log::IsEnabled(), log_, PROFILER_LOG, and v8::base::OS::SignalCodeMovingGC().
void v8::internal::Logger::CodeStartLinePosInfoRecordEvent | ( | PositionsRecorder * | pos_recorder | ) |
Definition at line 1380 of file log.cc.
References jit_logger_, NULL, and v8::internal::JitLogger::StartCodePosInfoEvent().
void v8::internal::Logger::CurrentTimeEvent | ( | ) |
void v8::internal::Logger::DebugEvent | ( | const char * | event_type, |
Vector< uint16_t > | parameter | ||
) |
Definition at line 1504 of file log.cc.
References v8::internal::SimpleStringBuilder::AddCharacter(), v8::internal::DeleteArray(), v8::internal::SimpleStringBuilder::Finalize(), v8::internal::Log::IsEnabled(), v8::internal::Vector< T >::length(), log_, and v8::base::OS::TimeCurrentMillis().
void v8::internal::Logger::DebugTag | ( | const char * | call_site_tag | ) |
Definition at line 1496 of file log.cc.
References v8::internal::Log::IsEnabled(), and log_.
Referenced by v8::internal::Debug::EnqueueCommandMessage(), and v8::internal::Debug::NotifyMessageHandler().
|
static |
Definition at line 953 of file log.cc.
References LOG, name, and TimerEvent().
Referenced by v8::internal::Isolate::Init(), and v8::internal::TimerEventScope< TimerEvent >::LogTimerEvent().
void v8::internal::Logger::DeleteEvent | ( | const char * | name, |
void * | object | ||
) |
|
static |
|
inlinestatic |
Definition at line 303 of file log.h.
Referenced by v8::internal::Isolate::Init().
|
static |
Definition at line 939 of file log.cc.
References DCHECK, v8::internal::EXTERNAL, v8::internal::JS, LOG, name, START, and TimerEvent().
Definition at line 1151 of file log.cc.
References CallbackEventInternal(), name, and PROFILER_LOG.
Referenced by LogAccessorCallbacks().
void v8::internal::Logger::HandleEvent | ( | const char * | name, |
Object ** | location | ||
) |
bool v8::internal::Logger::hasCodeEventListener | ( | CodeEventListener * | listener | ) |
Definition at line 798 of file log.cc.
References listeners_.
Referenced by addCodeEventListener(), and removeCodeEventListener().
void v8::internal::Logger::HeapSampleBeginEvent | ( | const char * | space, |
const char * | kind | ||
) |
Definition at line 1469 of file log.cc.
References v8::internal::Log::IsEnabled(), log_, space(), and v8::base::OS::TimeCurrentMillis().
void v8::internal::Logger::HeapSampleEndEvent | ( | const char * | space, |
const char * | kind | ||
) |
Definition at line 1480 of file log.cc.
References v8::internal::Log::IsEnabled(), log_, and space().
Definition at line 1488 of file log.cc.
References v8::internal::Log::IsEnabled(), and log_.
void v8::internal::Logger::HeapSampleJSConstructorEvent | ( | const char * | constructor, |
int | number, | ||
int | bytes | ||
) |
void v8::internal::Logger::HeapSampleJSProducerEvent | ( | const char * | constructor, |
Address * | stack | ||
) |
void v8::internal::Logger::HeapSampleJSRetainersEvent | ( | const char * | constructor, |
const char * | event | ||
) |
void v8::internal::Logger::HeapSampleStats | ( | const char * | space, |
const char * | kind, | ||
intptr_t | capacity, | ||
intptr_t | used | ||
) |
|
private |
v8::internal::Logger::INLINE | ( | static LogEventsAndTags | ToNativeByScriptLogEventsAndTags, Script * | ) |
void v8::internal::Logger::IntEvent | ( | const char * | name, |
int | value | ||
) |
Definition at line 824 of file log.cc.
References name, and UncheckedIntEvent().
void v8::internal::Logger::IntPtrTEvent | ( | const char * | name, |
intptr_t | value | ||
) |
Definition at line 829 of file log.cc.
References name, and UncheckedIntPtrTEvent().
|
inline |
Definition at line 311 of file log.h.
References is_logging_.
Referenced by is_logging_code_events(), and v8::internal::Heap::SelectScavengingVisitorsTable().
|
inline |
Definition at line 315 of file log.h.
References is_logging(), jit_logger_, and NULL.
Referenced by CodeCreateEvent(), CodeDeleteEvent(), CodeDisableOptEvent(), CodeMoveEvent(), CodeMovingGCEvent(), v8::internal::Isolate::Init(), v8::internal::Heap::OnMoveEvent(), v8::internal::RecordFunctionCompilation(), RegExpCodeCreateEvent(), and SharedFunctionInfoMoveEvent().
|
static |
Definition at line 946 of file log.cc.
References DCHECK, END, v8::internal::EXTERNAL, v8::internal::JS, LOG, name, and TimerEvent().
void v8::internal::Logger::LogAccessorCallbacks | ( | ) |
Definition at line 1765 of file log.cc.
References v8::internal::Heap::CollectAllGarbage(), GetterCallbackEvent(), v8::internal::Isolate::heap(), isolate_, v8::internal::Heap::kMakeHeapIterableMask, name, NULL, PROFILE, and SetterCallbackEvent().
Referenced by v8::internal::CpuProfiler::StartProcessorIfNotStarted().
|
private |
Definition at line 1627 of file log.cc.
References BUILTIN, CodeCreateEvent(), isolate_, v8::internal::Code::kind(), NULL, v8::internal::Code::NUMBER_OF_KINDS, PROFILE, and v8::internal::STUB.
Referenced by LogCodeObjects().
void v8::internal::Logger::LogCodeObjects | ( | ) |
Definition at line 1685 of file log.cc.
References v8::internal::Heap::CollectAllGarbage(), v8::internal::Isolate::heap(), isolate_, v8::internal::Heap::kMakeHeapIterableMask, LogCodeObject(), and NULL.
Referenced by SetCodeEventHandler(), and v8::internal::CpuProfiler::StartProcessorIfNotStarted().
void v8::internal::Logger::LogCompiledFunctions | ( | ) |
Definition at line 1745 of file log.cc.
References v8::internal::Isolate::builtins(), v8::internal::Heap::CollectAllGarbage(), v8::internal::EnumerateCompiledFunctions(), v8::internal::Isolate::heap(), isolate_, v8::internal::Heap::kMakeHeapIterableMask, LogExistingFunction(), NULL, and v8::internal::Vector< T >::start().
Referenced by SetCodeEventHandler(), and v8::internal::CpuProfiler::StartProcessorIfNotStarted().
void v8::internal::Logger::LogExistingFunction | ( | Handle< SharedFunctionInfo > | shared, |
Handle< Code > | code | ||
) |
Definition at line 1697 of file log.cc.
References CallbackEvent(), CodeCreateEvent(), v8::internal::Script::GetColumnNumber(), v8::internal::Script::GetLineNumber(), v8::internal::Isolate::heap(), isolate_, NULL, and PROFILE.
Referenced by LogCompiledFunctions().
void v8::internal::Logger::LogFailure | ( | ) |
Definition at line 1555 of file log.cc.
References StopProfiler().
Definition at line 976 of file log.cc.
References v8::internal::JSRegExp::ATOM, v8::internal::Object::GetProperty(), isolate_, and log_.
Referenced by RegExpCompileEvent().
|
private |
Definition at line 1422 of file log.cc.
References v8::internal::Log::IsEnabled(), v8::internal::kLogEventsNames, log_, and to().
Referenced by CodeMoveEvent(), and SharedFunctionInfoMoveEvent().
void v8::internal::Logger::NewEvent | ( | const char * | name, |
void * | object, | ||
size_t | size | ||
) |
Definition at line 1091 of file log.cc.
References v8::internal::Log::IsEnabled(), log_, name, size, and V8PRIxPTR.
|
static |
|
private |
Definition at line 803 of file log.cc.
References v8::internal::Log::IsEnabled(), kSamplingIntervalMs, and log_.
Referenced by v8::internal::Profiler::Engage().
Definition at line 1321 of file log.cc.
References v8::internal::AppendCodeCreateHeader(), CALL_LISTENERS, is_logging_code_events(), v8::internal::Log::IsEnabled(), log_, and PROFILER_LOG.
Definition at line 1022 of file log.cc.
References v8::internal::Log::IsEnabled(), log_, and LogRegExpSource().
void v8::internal::Logger::removeCodeEventListener | ( | CodeEventListener * | listener | ) |
Definition at line 792 of file log.cc.
References DCHECK, hasCodeEventListener(), and listeners_.
Referenced by SetCodeEventHandler(), TearDown(), and v8::internal::CodeAddressMap::~CodeAddressMap().
void v8::internal::Logger::ResourceEvent | ( | const char * | name, |
const char * | tag | ||
) |
Definition at line 1435 of file log.cc.
References v8::base::OS::GetUserTime(), v8::internal::Log::IsEnabled(), log_, name, and v8::base::OS::TimeCurrentMillis().
Sampler * v8::internal::Logger::sampler | ( | ) |
Definition at line 1897 of file log.cc.
References ticker_.
Referenced by v8::internal::Isolate::Deinit(), and v8::internal::CpuProfiler::StartProcessorIfNotStarted().
void v8::internal::Logger::SetCodeEventHandler | ( | uint32_t | options, |
JitCodeEventHandler | event_handler | ||
) |
Definition at line 1877 of file log.cc.
References addCodeEventListener(), isolate_, jit_logger_, v8::kJitCodeEventEnumExisting, LogCodeObjects(), LogCompiledFunctions(), NULL, and removeCodeEventListener().
Referenced by v8::Isolate::New(), and v8::Isolate::SetJitCodeEventHandler().
Definition at line 1157 of file log.cc.
References CallbackEventInternal(), name, and PROFILER_LOG.
Referenced by LogAccessorCallbacks().
Definition at line 1829 of file log.cc.
References addCodeEventListener(), v8::internal::OStringStream::c_str(), v8::internal::Profiler::Engage(), v8::internal::Log::Initialize(), v8::internal::Log::InitLogAtStart(), is_initialized_, is_logging_, kSamplingIntervalMs, ll_logger_, log_, perf_basic_logger_, perf_jit_logger_, v8::internal::PrepareLogFileName(), Profiler, profiler_, ticker_, and timer_.
Referenced by v8::internal::Isolate::Init().
Definition at line 1414 of file log.cc.
References is_logging_code_events(), MoveEventInternal(), PROFILER_LOG, and to().
void v8::internal::Logger::SharedLibraryEvent | ( | const std::string & | library_path, |
uintptr_t | start, | ||
uintptr_t | end | ||
) |
Definition at line 896 of file log.cc.
References v8::internal::Log::IsEnabled(), log_, and V8PRIxPTR.
Definition at line 1402 of file log.cc.
References v8::internal::Log::IsEnabled(), v8::internal::kLogEventsNames, LL_LOG, and log_.
void v8::internal::Logger::StopProfiler | ( | ) |
Definition at line 1544 of file log.cc.
References is_logging_, v8::internal::Log::IsEnabled(), log_, NULL, v8::internal::Profiler::pause(), and profiler_.
Referenced by LogFailure().
void v8::internal::Logger::StringEvent | ( | const char * | name, |
const char * | value | ||
) |
Definition at line 811 of file log.cc.
References name, and UncheckedStringEvent().
Definition at line 1449 of file log.cc.
References v8::internal::Isolate::heap(), v8::internal::Log::IsEnabled(), isolate_, log_, and name.
FILE * v8::internal::Logger::TearDown | ( | ) |
Definition at line 1902 of file log.cc.
References v8::internal::Log::Close(), v8::internal::Profiler::Disengage(), is_initialized_, jit_logger_, ll_logger_, log_, NULL, perf_basic_logger_, perf_jit_logger_, profiler_, removeCodeEventListener(), and ticker_.
Referenced by v8::internal::Isolate::Deinit().
|
private |
Definition at line 1519 of file log.cc.
References v8::internal::TickSample::external_callback, v8::internal::TickSample::frames_count, v8::internal::TickSample::has_external_callback, v8::internal::Log::IsEnabled(), v8::internal::kLogEventsNames, log_, v8::internal::overflow, v8::internal::TickSample::pc, v8::internal::TickSample::stack, v8::internal::TickSample::state, timer_, and v8::internal::TickSample::tos.
void v8::internal::Logger::TimerEvent | ( | Logger::StartEnd | se, |
const char * | name | ||
) |
Definition at line 927 of file log.cc.
References DCHECK, v8::internal::Log::IsEnabled(), log_, name, START, and timer_.
Referenced by DefaultTimerEventsLogger(), EnterExternal(), and LeaveExternal().
|
private |
Definition at line 834 of file log.cc.
References v8::internal::Log::IsEnabled(), log_, and name.
Referenced by IntEvent().
|
private |
Definition at line 842 of file log.cc.
References v8::internal::Log::IsEnabled(), log_, name, and V8_PTR_PREFIX.
Referenced by IntPtrTEvent().
|
private |
Definition at line 816 of file log.cc.
References v8::internal::Log::IsEnabled(), log_, and name.
Referenced by StringEvent().
|
friend |
|
private |
Definition at line 415 of file log.h.
Referenced by SetUp(), and TearDown().
|
private |
Definition at line 405 of file log.h.
Referenced by is_logging(), SetUp(), v8::internal::CpuProfiler::StartProcessorIfNotStarted(), v8::internal::CpuProfiler::StopProcessor(), and StopProfiler().
|
private |
Definition at line 383 of file log.h.
Referenced by CodeCreateEvent(), LogAccessorCallbacks(), LogCodeObject(), LogCodeObjects(), LogCompiledFunctions(), LogExistingFunction(), LogRegExpSource(), SetCodeEventHandler(), and SuspectReadEvent().
|
private |
Definition at line 410 of file log.h.
Referenced by CodeStartLinePosInfoRecordEvent(), is_logging_code_events(), SetCodeEventHandler(), and TearDown().
|
static |
Definition at line 341 of file log.h.
Referenced by ProfilerBeginEvent(), and SetUp().
|
private |
Definition at line 411 of file log.h.
Referenced by addCodeEventListener(), hasCodeEventListener(), and removeCodeEventListener().
|
private |
Definition at line 409 of file log.h.
Referenced by SetUp(), and TearDown().
|
private |
Definition at line 406 of file log.h.
Referenced by ApiEntryCall(), ApiEvent(), ApiIndexedPropertyAccess(), ApiIndexedSecurityCheck(), ApiNamedPropertyAccess(), ApiNamedSecurityCheck(), ApiObjectAccess(), CallbackEventInternal(), CodeCreateEvent(), CodeDeleteEvent(), CodeDeoptEvent(), CodeDisableOptEvent(), CodeMovingGCEvent(), CodeNameEvent(), CurrentTimeEvent(), DebugEvent(), DebugTag(), DeleteEvent(), HandleEvent(), HeapSampleBeginEvent(), HeapSampleEndEvent(), HeapSampleItemEvent(), LogRegExpSource(), MoveEventInternal(), NewEvent(), ProfilerBeginEvent(), RegExpCodeCreateEvent(), RegExpCompileEvent(), ResourceEvent(), SetUp(), SharedLibraryEvent(), SnapshotPositionEvent(), StopProfiler(), SuspectReadEvent(), TearDown(), TickEvent(), TimerEvent(), UncheckedIntEvent(), UncheckedIntPtrTEvent(), UncheckedStringEvent(), and ~Logger().
|
private |
Definition at line 407 of file log.h.
Referenced by SetUp(), and TearDown().
|
private |
Definition at line 408 of file log.h.
Referenced by SetUp(), and TearDown().
|
private |
Definition at line 391 of file log.h.
Referenced by SetUp(), StopProfiler(), and TearDown().
|
private |
Definition at line 386 of file log.h.
Referenced by v8::internal::Profiler::Disengage(), v8::internal::Profiler::Engage(), sampler(), SetUp(), v8::internal::CpuProfiler::StopProcessor(), and TearDown().
|
private |
Definition at line 417 of file log.h.
Referenced by CodeDeoptEvent(), CurrentTimeEvent(), SetUp(), TickEvent(), and TimerEvent().