V8 Project
v8::ActivityControl Class Referenceabstract

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

#include <v8-profiler.h>

+ Collaboration diagram for v8::ActivityControl:

Public Types

enum  ControlOption { kContinue = 0 , kAbort = 1 }
 

Public Member Functions

virtual ~ActivityControl ()
 
virtual ControlOption ReportProgressValue (int done, int total)=0
 Notify about current progress. More...
 

Detailed Description

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

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

Member Enumeration Documentation

◆ ControlOption

Enumerator
kContinue 
kAbort 

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

373  {
374  kContinue = 0,
375  kAbort = 1
376  };

Constructor & Destructor Documentation

◆ ~ActivityControl()

virtual v8::ActivityControl::~ActivityControl ( )
inlinevirtual

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

377 {}

Member Function Documentation

◆ ReportProgressValue()

virtual ControlOption v8::ActivityControl::ReportProgressValue ( int  done,
int  total 
)
pure virtual

Notify about current progress.

The activity can be stopped by returning kAbort as the callback result.

Referenced by v8::internal::HeapSnapshotGenerator::ProgressReport().

+ Here is the caller graph for this function:

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