v8 12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
ActivityControl Class Referenceabstract

#include <v8-profiler.h>

Public Types

enum  ControlOption { kContinue = 0 , kAbort = 1 }
 

Public Member Functions

virtual ~ActivityControl ()=default
 
virtual ControlOption ReportProgressValue (uint32_t done, uint32_t total)=0
 

Detailed Description

An interface for reporting progress and controlling long-running activities.

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

Member Enumeration Documentation

◆ ControlOption

Enumerator
kContinue 
kAbort 

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

Constructor & Destructor Documentation

◆ ~ActivityControl()

virtual ~ActivityControl ( )
virtualdefault

Member Function Documentation

◆ ReportProgressValue()

virtual ControlOption ReportProgressValue ( uint32_t  done,
uint32_t  total 
)
pure virtual

Notify about current progress. The activity can be stopped by returning kAbort as the callback result.


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