v8  3.11.10(node0.8.26)
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 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 ()
 
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 142 of file log.h.

Member Enumeration Documentation

Enumerator
NUMBER_OF_LOG_EVENTS 

Definition at line 145 of file log.h.

Member Function Documentation

void ApiEntryCall ( const char *  name)

Definition at line 794 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 756 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 1050 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 1219 of file log.cc.

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

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

Definition at line 809 of file log.cc.

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

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

Definition at line 822 of file log.cc.

References LOGGER.

void EnableSlidingStateWindow ( )

Definition at line 1716 of file log.cc.

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

Referenced by V8::EnableSlidingStateWindow().

void EnsureTickerStarted ( )

Definition at line 1684 of file log.cc.

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

Referenced by RuntimeProfiler::SetUp().

void EnsureTickerStopped ( )

Definition at line 1690 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 598 of file log.cc.

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

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

Definition at line 1192 of file log.cc.

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

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

Definition at line 1203 of file log.cc.

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

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

Definition at line 1211 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 572 of file log.cc.

void IntPtrTEvent ( const char *  name,
intptr_t  value 
)

Definition at line 577 of file log.cc.

bool is_logging ( )
inline

Definition at line 273 of file log.h.

Referenced by CodeGenerator::ShouldGenerateLog().

bool IsProfilerPaused ( )

Definition at line 1271 of file log.cc.

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

Referenced by V8::IsProfilerPaused().

void LogCodeObjects ( )

Definition at line 1526 of file log.cc.

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

void LogCompiledFunctions ( )
void LogFailure ( )

Definition at line 1318 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 800 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 817 of file log.cc.

References LOGGER.

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

Definition at line 702 of file log.cc.

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

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

Definition at line 1679 of file log.cc.

void SetterCallbackEvent ( String name,
Address  entry_point 
)
void SharedFunctionInfoMoveEvent ( Address  from,
Address  to 
)

Definition at line 1130 of file log.cc.

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

Definition at line 634 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 647 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 559 of file log.cc.

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

Definition at line 1695 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 427 of file log.h.

friend class EventLog
friend

Definition at line 391 of file log.h.

friend class Isolate
friend

Definition at line 392 of file log.h.

friend class LoggerTestHelper
friend

Definition at line 400 of file log.h.

friend class Profiler
friend

Definition at line 395 of file log.h.

Referenced by Logger::SetUp().

friend class SlidingStateWindow
friend

Definition at line 396 of file log.h.

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

friend class StackTracer
friend

Definition at line 397 of file log.h.

friend class TimeLog
friend

Definition at line 394 of file log.h.

friend class VMState
friend

Definition at line 398 of file log.h.

Field Documentation

const int kSamplingIntervalMs = 1
static

Definition at line 302 of file log.h.

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


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