V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::Logger Class Reference
Inheritance diagram for v8::internal::Logger:
v8::internal::CodeEventListener

Public Types

enum  StartEnd { START = 0, END = 1, STAMP = 2 }
 
enum  ScriptEventType {
  kReserveId, kCreate, kDeserialize, kBackgroundCompile,
  kStreamingCompile
}
 
- Public Types inherited from v8::internal::CodeEventListener
enum  LogEventsAndTags { LOG_EVENTS_AND_TAGS_LIST =(DECLARE_ENUM) NUMBER_OF_LOG_EVENTS }
 

Public Member Functions

bool SetUp (Isolate *isolate)
 
void SetCodeEventHandler (uint32_t options, JitCodeEventHandler event_handler)
 
sampler::Samplersampler ()
 
void StopProfilerThread ()
 
FILE * TearDown ()
 
void StringEvent (const char *name, const char *value)
 
void IntPtrTEvent (const char *name, intptr_t value)
 
void HandleEvent (const char *name, Address *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 FunctionEvent (const char *reason, int script_id, double time_delta_ms, int start_position=-1, int end_position=-1, String function_name=String())
 
void FunctionEvent (const char *reason, int script_id, double time_delta_ms, int start_position, int end_position, const char *function_name=nullptr, size_t function_name_length=0)
 
void CompilationCacheEvent (const char *action, const char *cache_type, SharedFunctionInfo *sfi)
 
void ScriptEvent (ScriptEventType type, int script_id)
 
void ScriptDetails (Script *script)
 
void ApiSecurityCheck ()
 
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)
 
void CallbackEvent (Name name, Address entry_point) override
 
void GetterCallbackEvent (Name name, Address entry_point) override
 
void SetterCallbackEvent (Name name, Address entry_point) override
 
void CodeCreateEvent (CodeEventListener::LogEventsAndTags tag, AbstractCode code, const char *source) override
 
void CodeCreateEvent (CodeEventListener::LogEventsAndTags tag, AbstractCode code, Name name) override
 
void CodeCreateEvent (CodeEventListener::LogEventsAndTags tag, AbstractCode code, SharedFunctionInfo *shared, Name name) override
 
void CodeCreateEvent (CodeEventListener::LogEventsAndTags tag, AbstractCode code, SharedFunctionInfo *shared, Name source, int line, int column) override
 
void CodeCreateEvent (CodeEventListener::LogEventsAndTags tag, const wasm::WasmCode *code, wasm::WasmName name) override
 
void CodeDisableOptEvent (AbstractCode code, SharedFunctionInfo *shared) override
 
void CodeMovingGCEvent () override
 
void RegExpCodeCreateEvent (AbstractCode code, String source) override
 
void CodeMoveEvent (AbstractCode from, AbstractCode to) override
 
void CodeLinePosInfoRecordEvent (Address code_start, ByteArray source_position_table)
 
void CodeLinePosInfoRecordEvent (Address code_start, Vector< const byte > source_position_table)
 
void SharedFunctionInfoMoveEvent (Address from, Address to) override
 
void CodeNameEvent (Address addr, int pos, const char *code_name)
 
void CodeDeoptEvent (Code code, DeoptimizeKind kind, Address pc, int fp_to_sp_delta) override
 
void ICEvent (const char *type, bool keyed, Map map, Object *key, char old_state, char new_state, const char *modifier, const char *slow_stub_reason)
 
void MapEvent (const char *type, Map from, Map to, const char *reason=nullptr, HeapObject *name_or_sfi=nullptr)
 
void MapCreate (Map map)
 
void MapDetails (Map map)
 
void SharedLibraryEvent (const std::string &library_path, uintptr_t start, uintptr_t end, intptr_t aslr_slide)
 
void CurrentTimeEvent ()
 
V8_EXPORT_PRIVATE void TimerEvent (StartEnd se, const char *name)
 
bool is_logging ()
 
bool is_listening_to_code_events () override
 
void StopProfiler ()
 
void LogExistingFunction (Handle< SharedFunctionInfo > shared, Handle< AbstractCode > code)
 
void LogCompiledFunctions ()
 
void LogAccessorCallbacks ()
 
void LogCodeObjects ()
 
void LogAllMaps ()
 
void LogFailure ()
 
void LogCodeObject (Object *code_object)
 

Static Public Member Functions

static void EnterExternal (Isolate *isolate)
 
static void LeaveExternal (Isolate *isolate)
 
static void DefaultEventLoggerSentinel (const char *name, int event)
 
static V8_INLINE void CallEventLogger (Isolate *isolate, const char *name, StartEnd se, bool expose_to_api)
 
static V8_INLINE CodeEventListener::LogEventsAndTags ToNativeByScript (CodeEventListener::LogEventsAndTags, Script *)
 

Static Public Attributes

static const LogSeparator kNext = LogSeparator::kSeparator
 

Friends

class EventLog
 
class Isolate
 
class TimeLog
 
class Profiler
 
template<StateTag Tag>
class VMState
 
class LoggerTestHelper
 
class CpuProfiler
 

Detailed Description

Definition at line 112 of file log.h.


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