v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::ProfilerStats Class Reference

#include <profiler-stats.h>

Collaboration diagram for v8::internal::ProfilerStats:

Public Types

enum  Reason {
  kTickBufferFull , kIsolateNotLocked , kSimulatorFillRegistersFailed , kNoFrameRegion ,
  kInCallOrApply , kNoSymbolizedFrames , kNullPC , kNumberOfReasons
}
 

Public Member Functions

void AddReason (Reason reason)
 
void Clear ()
 
void Print () const
 

Static Public Member Functions

static ProfilerStatsInstance ()
 

Private Member Functions

 ProfilerStats ()=default
 

Static Private Member Functions

static const char * ReasonToString (Reason reason)
 

Private Attributes

std::atomic_int counts_ [Reason::kNumberOfReasons] = {}
 

Detailed Description

Definition at line 14 of file profiler-stats.h.

Member Enumeration Documentation

◆ Reason

Enumerator
kTickBufferFull 
kIsolateNotLocked 
kSimulatorFillRegistersFailed 
kNoFrameRegion 
kInCallOrApply 
kNoSymbolizedFrames 
kNullPC 
kNumberOfReasons 

Definition at line 16 of file profiler-stats.h.

Constructor & Destructor Documentation

◆ ProfilerStats()

v8::internal::ProfilerStats::ProfilerStats ( )
privatedefault

Member Function Documentation

◆ AddReason()

void v8::internal::ProfilerStats::AddReason ( Reason reason)

Definition at line 14 of file profiler-stats.cc.

Here is the caller graph for this function:

◆ Clear()

void v8::internal::ProfilerStats::Clear ( )

Definition at line 18 of file profiler-stats.cc.

Here is the caller graph for this function:

◆ Instance()

static ProfilerStats * v8::internal::ProfilerStats::Instance ( )
inlinestatic

Definition at line 30 of file profiler-stats.h.

Here is the caller graph for this function:

◆ Print()

void v8::internal::ProfilerStats::Print ( ) const

Definition at line 24 of file profiler-stats.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReasonToString()

const char * v8::internal::ProfilerStats::ReasonToString ( Reason reason)
staticprivate

Definition at line 33 of file profiler-stats.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ counts_

std::atomic_int v8::internal::ProfilerStats::counts_[Reason::kNumberOfReasons] = {}
private

Definition at line 43 of file profiler-stats.h.


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