#include <v8-profiler.h>
Interface to listen to code creation and code relocation events. 
Definition at line 1017 of file v8-profiler.h.
 
◆ CodeEventHandler()
  
  
      
        
          | 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. 
 
 
◆ ~CodeEventHandler()
  
  
      
        
          | virtual v8::CodeEventHandler::~CodeEventHandler  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ Disable()
      
        
          | void v8::CodeEventHandler::Disable  | 
          ( | 
           | ) | 
           | 
        
      
 
Call Disable() to stop listening to code creation and code relocation events. 
 
 
◆ Enable()
      
        
          | void v8::CodeEventHandler::Enable  | 
          ( | 
           | ) | 
           | 
        
      
 
Call Enable() to starts listening to code creation and code relocation events. These events will be handled by Handle(). 
 
 
◆ 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(). 
 
 
The documentation for this class was generated from the following file: