v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Logger Class Reference

#include <log.h>

Data Structures

class  NameBuffer
 
class  NameMap
 

Public Types

enum  LogEventsAndTags { NUMBER_OF_LOG_EVENTS }
 

Public Member Functions

bool SetUp ()
 
void SetCodeEventHandler (uint32_t options, JitCodeEventHandler event_handler)
 
void EnsureTickerStarted ()
 
void EnsureTickerStopped ()
 
Samplersampler ()
 
FILE * TearDown ()
 
void EnableSlidingStateWindow ()
 
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 (String *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 CallbackEvent (String *name, Address entry_point)
 
void GetterCallbackEvent (String *name, Address entry_point)
 
void SetterCallbackEvent (String *name, Address entry_point)
 
void CodeCreateEvent (LogEventsAndTags tag, Code *code, const char *source)
 
void CodeCreateEvent (LogEventsAndTags tag, Code *code, String *name)
 
void CodeCreateEvent (LogEventsAndTags tag, Code *code, SharedFunctionInfo *shared, String *name)
 
void CodeCreateEvent (LogEventsAndTags tag, Code *code, SharedFunctionInfo *shared, String *source, int line)
 
void CodeCreateEvent (LogEventsAndTags tag, Code *code, int args_count)
 
void CodeMovingGCEvent ()
 
void RegExpCodeCreateEvent (Code *code, String *source)
 
void CodeMoveEvent (Address from, Address to)
 
void CodeDeleteEvent (Address from)
 
void SharedFunctionInfoMoveEvent (Address from, Address to)
 
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 char *library_path, uintptr_t start, uintptr_t end)
 
void SharedLibraryEvent (const wchar_t *library_path, uintptr_t start, uintptr_t end)
 
void RegExpCompileEvent (Handle< JSRegExp > regexp, bool in_cache)
 
void LogRuntime (Vector< const char > format, JSArray *args)
 
bool is_logging ()
 
bool is_logging_code_events ()
 
void PauseProfiler ()
 
void ResumeProfiler ()
 
bool IsProfilerPaused ()
 
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 Public Attributes

static const int kSamplingIntervalMs = 1
 

Friends

class EventLog
 
class Isolate
 
class LogMessageBuilder
 
class TimeLog
 
class Profiler
 
class SlidingStateWindow
 
class StackTracer
 
class VMState
 
class LoggerTestHelper
 
class CpuProfiler
 

Detailed Description

Definition at line 151 of file log.h.

Member Enumeration Documentation

Enumerator
NUMBER_OF_LOG_EVENTS 

Definition at line 154 of file log.h.

Member Function Documentation

void ApiEntryCall ( const char *  name)

Definition at line 841 of file log.cc.

References Log::IsEnabled().

void ApiIndexedPropertyAccess ( const char *  tag,
JSObject holder,
uint32_t  index 
)
void ApiIndexedSecurityCheck ( uint32_t  index)

Definition at line 803 of file log.cc.

References Log::IsEnabled().

void ApiNamedPropertyAccess ( const char *  tag,
JSObject holder,
Object name 
)
void ApiNamedSecurityCheck ( Object key)
void ApiObjectAccess ( const char *  tag,
JSObject obj 
)
void CallbackEvent ( String name,
Address  entry_point 
)
void CodeDeleteEvent ( Address  from)
void CodeMoveEvent ( Address  from,
Address  to 
)
void CodeMovingGCEvent ( )

Definition at line 1117 of file log.cc.

References Log::IsEnabled(), and OS::SignalCodeMovingGC().

void DebugEvent ( const char *  event_type,
Vector< uint16_t >  parameter 
)
void DebugTag ( const char *  call_site_tag)

Definition at line 1292 of file log.cc.

References Log::IsEnabled(), and Logger::LogMessageBuilder.

void DeleteEvent ( const char *  name,
void *  object 
)

Definition at line 856 of file log.cc.

References Log::IsEnabled(), Logger::LogMessageBuilder, and V8PRIxPTR.

void DeleteEventStatic ( const char *  name,
void *  object 
)
static

Definition at line 869 of file log.cc.

References LOGGER.

void EnableSlidingStateWindow ( )

Definition at line 1801 of file log.cc.

References v8::internal::NULL, and Logger::SlidingStateWindow.

Referenced by V8::EnableSlidingStateWindow().

void EnsureTickerStarted ( )

Definition at line 1769 of file log.cc.

References ASSERT, Sampler::IsActive(), v8::internal::NULL, and Sampler::Start().

Referenced by RuntimeProfiler::SetUp().

void EnsureTickerStopped ( )

Definition at line 1775 of file log.cc.

References Sampler::IsActive(), v8::internal::NULL, and Sampler::Stop().

void GetterCallbackEvent ( String name,
Address  entry_point 
)
void HandleEvent ( const char *  name,
Object **  location 
)

Definition at line 645 of file log.cc.

References Log::IsEnabled(), Logger::LogMessageBuilder, and V8PRIxPTR.

void HeapSampleBeginEvent ( const char *  space,
const char *  kind 
)

Definition at line 1265 of file log.cc.

References Log::IsEnabled(), Logger::LogMessageBuilder, and OS::TimeCurrentMillis().

void HeapSampleEndEvent ( const char *  space,
const char *  kind 
)

Definition at line 1276 of file log.cc.

References Log::IsEnabled(), and Logger::LogMessageBuilder.

void HeapSampleItemEvent ( const char *  type,
int  number,
int  bytes 
)

Definition at line 1284 of file log.cc.

References Log::IsEnabled(), and Logger::LogMessageBuilder.

void HeapSampleJSConstructorEvent ( const char *  constructor,
int  number,
int  bytes 
)
void HeapSampleJSProducerEvent ( const char *  constructor,
Address stack 
)
void HeapSampleJSRetainersEvent ( const char *  constructor,
const char *  event 
)
void HeapSampleStats ( const char *  space,
const char *  kind,
intptr_t  capacity,
intptr_t  used 
)
INLINE ( static LogEventsAndTags   ToNativeByScriptLogEventsAndTags, Script *)
void IntEvent ( const char *  name,
int  value 
)

Definition at line 619 of file log.cc.

void IntPtrTEvent ( const char *  name,
intptr_t  value 
)

Definition at line 624 of file log.cc.

bool is_logging ( )
inline

Definition at line 286 of file log.h.

Referenced by Logger::is_logging_code_events(), and CodeGenerator::ShouldGenerateLog().

bool is_logging_code_events ( )
inline
bool IsProfilerPaused ( )

Definition at line 1344 of file log.cc.

References v8::internal::NULL, and Profiler::paused().

Referenced by V8::IsProfilerPaused().

void LogCodeObjects ( )

Definition at line 1599 of file log.cc.

References HEAP, Heap::kMakeHeapIterableMask, and v8::internal::NULL.

Referenced by Logger::SetCodeEventHandler().

void LogCompiledFunctions ( )
void LogFailure ( )

Definition at line 1391 of file log.cc.

References Logger::PauseProfiler().

void LogRuntime ( Vector< const char >  format,
JSArray args 
)
void NewEvent ( const char *  name,
void *  object,
size_t  size 
)

Definition at line 847 of file log.cc.

References Log::IsEnabled(), Logger::LogMessageBuilder, and V8PRIxPTR.

void NewEventStatic ( const char *  name,
void *  object,
size_t  size 
)
static

Definition at line 864 of file log.cc.

References LOGGER.

void PauseProfiler ( )
void RegExpCompileEvent ( Handle< JSRegExp regexp,
bool  in_cache 
)

Definition at line 749 of file log.cc.

References Log::IsEnabled(), and Logger::LogMessageBuilder.

void ResourceEvent ( const char *  name,
const char *  tag 
)
Sampler * sampler ( )

Definition at line 1764 of file log.cc.

void SetCodeEventHandler ( uint32_t  options,
JitCodeEventHandler  event_handler 
)
void SetterCallbackEvent ( String name,
Address  entry_point 
)
void SharedFunctionInfoMoveEvent ( Address  from,
Address  to 
)

Definition at line 1203 of file log.cc.

void SharedLibraryEvent ( const char *  library_path,
uintptr_t  start,
uintptr_t  end 
)

Definition at line 681 of file log.cc.

References Log::IsEnabled(), Logger::LogMessageBuilder, and V8PRIxPTR.

void SharedLibraryEvent ( const wchar_t *  library_path,
uintptr_t  start,
uintptr_t  end 
)

Definition at line 694 of file log.cc.

References Log::IsEnabled(), Logger::LogMessageBuilder, and V8PRIxPTR.

void SnapshotPositionEvent ( Address  addr,
int  pos 
)
void StringEvent ( const char *  name,
const char *  value 
)

Definition at line 606 of file log.cc.

void SuspectReadEvent ( String name,
Object obj 
)
FILE * TearDown ( )

Definition at line 1780 of file log.cc.

References Log::Close(), Profiler::Disengage(), and v8::internal::NULL.

Friends And Related Function Documentation

friend class CpuProfiler
friend

Definition at line 452 of file log.h.

friend class EventLog
friend

Definition at line 413 of file log.h.

friend class Isolate
friend

Definition at line 414 of file log.h.

friend class LoggerTestHelper
friend

Definition at line 422 of file log.h.

friend class Profiler
friend

Definition at line 417 of file log.h.

Referenced by Logger::SetUp().

friend class SlidingStateWindow
friend

Definition at line 418 of file log.h.

Referenced by Logger::EnableSlidingStateWindow(), and Logger::SetUp().

friend class StackTracer
friend

Definition at line 419 of file log.h.

friend class TimeLog
friend

Definition at line 416 of file log.h.

friend class VMState
friend

Definition at line 420 of file log.h.

Field Documentation

const int kSamplingIntervalMs = 1
static

Definition at line 319 of file log.h.

Referenced by Logger::SetUp(), and TEST().


The documentation for this class was generated from the following files: