v8
9.4.146 (node 16.13.0)
V8 is Google's open source JavaScript engine
|
#include <v8-profiler.h>
Public Member Functions | |
CodeEventHandler (Isolate *isolate) | |
virtual | ~CodeEventHandler () |
virtual void | Handle (CodeEvent *code_event)=0 |
void | Enable () |
void | Disable () |
Interface to listen to code creation and code relocation events.
Definition at line 1077 of file v8-profiler.h.
|
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.
|
virtual |
void Disable | ( | ) |
Call Disable()
to stop listening to code creation and code relocation events.
void Enable | ( | ) |
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()
.