V8 Project
v8::internal::GCTracer::Scope Class Reference

#include <gc-tracer.h>

+ Collaboration diagram for v8::internal::GCTracer::Scope:

Public Types

enum  ScopeId {
  EXTERNAL , MC_MARK , MC_SWEEP , MC_SWEEP_NEWSPACE ,
  MC_SWEEP_OLDSPACE , MC_SWEEP_CODE , MC_SWEEP_CELL , MC_SWEEP_MAP ,
  MC_EVACUATE_PAGES , MC_UPDATE_NEW_TO_NEW_POINTERS , MC_UPDATE_ROOT_TO_NEW_POINTERS , MC_UPDATE_OLD_TO_NEW_POINTERS ,
  MC_UPDATE_POINTERS_TO_EVACUATED , MC_UPDATE_POINTERS_BETWEEN_EVACUATED , MC_UPDATE_MISC_POINTERS , MC_WEAKCOLLECTION_PROCESS ,
  MC_WEAKCOLLECTION_CLEAR , MC_WEAKCOLLECTION_ABORT , MC_FLUSH_CODE , NUMBER_OF_SCOPES
}
 

Public Member Functions

 Scope (GCTracer *tracer, ScopeId scope)
 
 ~Scope ()
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (Scope)
 

Private Attributes

GCTracertracer_
 
ScopeId scope_
 
double start_time_
 

Detailed Description

Definition at line 88 of file gc-tracer.h.

Member Enumeration Documentation

◆ ScopeId

Enumerator
EXTERNAL 
MC_MARK 
MC_SWEEP 
MC_SWEEP_NEWSPACE 
MC_SWEEP_OLDSPACE 
MC_SWEEP_CODE 
MC_SWEEP_CELL 
MC_SWEEP_MAP 
MC_EVACUATE_PAGES 
MC_UPDATE_NEW_TO_NEW_POINTERS 
MC_UPDATE_ROOT_TO_NEW_POINTERS 
MC_UPDATE_OLD_TO_NEW_POINTERS 
MC_UPDATE_POINTERS_TO_EVACUATED 
MC_UPDATE_POINTERS_BETWEEN_EVACUATED 
MC_UPDATE_MISC_POINTERS 
MC_WEAKCOLLECTION_PROCESS 
MC_WEAKCOLLECTION_CLEAR 
MC_WEAKCOLLECTION_ABORT 
MC_FLUSH_CODE 
NUMBER_OF_SCOPES 

Definition at line 90 of file gc-tracer.h.

90  {
91  EXTERNAL,
92  MC_MARK,
93  MC_SWEEP,
111  };

Constructor & Destructor Documentation

◆ Scope()

v8::internal::GCTracer::Scope::Scope ( GCTracer tracer,
ScopeId  scope 
)
inline

Definition at line 113 of file gc-tracer.h.

113  : tracer_(tracer), scope_(scope) {
115  }
static double TimeCurrentMillis()

References start_time_, and v8::base::OS::TimeCurrentMillis().

+ Here is the call graph for this function:

◆ ~Scope()

v8::internal::GCTracer::Scope::~Scope ( )
inline

Definition at line 117 of file gc-tracer.h.

117  {
118  DCHECK(scope_ < NUMBER_OF_SCOPES); // scope_ is unsigned.
121  }
double scopes[Scope::NUMBER_OF_SCOPES]
Definition: gc-tracer.h:235
#define DCHECK(condition)
Definition: logging.h:205

References v8::internal::GCTracer::current_, DCHECK, NUMBER_OF_SCOPES, scope_, v8::internal::GCTracer::Event::scopes, start_time_, v8::base::OS::TimeCurrentMillis(), and tracer_.

+ Here is the call graph for this function:

Member Function Documentation

◆ DISALLOW_COPY_AND_ASSIGN()

v8::internal::GCTracer::Scope::DISALLOW_COPY_AND_ASSIGN ( Scope  )
private

Member Data Documentation

◆ scope_

ScopeId v8::internal::GCTracer::Scope::scope_
private

Definition at line 125 of file gc-tracer.h.

Referenced by ~Scope().

◆ start_time_

double v8::internal::GCTracer::Scope::start_time_
private

Definition at line 126 of file gc-tracer.h.

Referenced by Scope(), and ~Scope().

◆ tracer_

GCTracer* v8::internal::GCTracer::Scope::tracer_
private

Definition at line 124 of file gc-tracer.h.

Referenced by ~Scope().


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