v8  7.0.276 (node 11.14.0)
V8 is Google's open source JavaScript engine
CodeEventHandler Class Referenceabstract

#include <v8-profiler.h>

Public Member Functions

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

Detailed Description

Interface to listen to code creation events.

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

Constructor & Destructor Documentation

◆ 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.

◆ ~CodeEventHandler()

virtual ~CodeEventHandler ( )
virtual

Member Function Documentation

◆ Disable()

void Disable ( )

◆ Enable()

void Enable ( )

◆ Handle()

virtual void Handle ( CodeEvent code_event)
pure virtual

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