v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::CodeEventHandler Class Referenceabstract

#include <v8-profiler.h>

Collaboration diagram for v8::CodeEventHandler:

Public Member Functions

 CodeEventHandler (Isolate *isolate)
 
virtual ~CodeEventHandler ()
 
virtual void Handle (CodeEvent *code_event)=0
 
void Enable ()
 
void Disable ()
 

Private Member Functions

 CodeEventHandler ()
 
 CodeEventHandler (const CodeEventHandler &)
 
CodeEventHandleroperator= (const CodeEventHandler &)
 

Private Attributes

void * internal_listener_
 

Detailed Description

Interface to listen to code creation and code relocation events.

Definition at line 1309 of file v8-profiler.h.

Constructor & Destructor Documentation

◆ CodeEventHandler() [1/3]

v8::CodeEventHandler::CodeEventHandler ( Isolate * isolate)
explicit

Creates a new listener for the |isolate|. The isolate must be initialized. The listener object must be disposed after use by calling |Dispose| method. Multiple listeners can be created for the same isolate.

Definition at line 11561 of file api.cc.

◆ ~CodeEventHandler()

v8::CodeEventHandler::~CodeEventHandler ( )
virtual

Definition at line 11566 of file api.cc.

◆ CodeEventHandler() [2/3]

v8::CodeEventHandler::CodeEventHandler ( )
private

◆ CodeEventHandler() [3/3]

v8::CodeEventHandler::CodeEventHandler ( const CodeEventHandler & )
private

Member Function Documentation

◆ Disable()

void v8::CodeEventHandler::Disable ( )

Call Disable() to stop listening to code creation and code relocation events.

Definition at line 11575 of file api.cc.

◆ Enable()

void v8::CodeEventHandler::Enable ( )

Call Enable() to starts listening to code creation and code relocation events. These events will be handled by Handle().

Definition at line 11570 of file api.cc.

◆ Handle()

virtual void v8::CodeEventHandler::Handle ( CodeEvent * code_event)
pure virtual

Handle is called every time a code object is created or moved. Information about each code event will be available through the code_event parameter.

When the CodeEventType is kRelocationType, the code for this CodeEvent has moved from GetPreviousCodeStartAddress() to GetCodeStartAddress().

Here is the caller graph for this function:

◆ operator=()

CodeEventHandler & v8::CodeEventHandler::operator= ( const CodeEventHandler & )
private

Member Data Documentation

◆ internal_listener_

void* v8::CodeEventHandler::internal_listener_
private

Definition at line 1345 of file v8-profiler.h.


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