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

#include <counters.h>

Collaboration diagram for v8::internal::StatsCounter:

Public Member Functions

void Set (int value)
 
int Get ()
 
void Increment (int value=1)
 
void Decrement (int value=1)
 
V8_EXPORT_PRIVATE bool Enabled ()
 
std::atomic< int > * GetInternalPointer ()
 

Private Member Functions

void Initialize (const char *name, Counters *counters)
 
V8_NOINLINE V8_EXPORT_PRIVATE std::atomic< int > * SetupPtrFromStatsTable ()
 
void Reset ()
 
std::atomic< int > * GetPtr ()
 

Private Attributes

Counterscounters_ = nullptr
 
const char * name_ = nullptr
 
std::atomic< std::atomic< int > * > ptr_ {nullptr}
 

Friends

class Counters
 
class CountersInitializer
 
class StatsCounterResetter
 

Detailed Description

Definition at line 100 of file counters.h.

Member Function Documentation

◆ Decrement()

void v8::internal::StatsCounter::Decrement ( int value = 1)
inline

Definition at line 109 of file counters.h.

Here is the call graph for this function:

◆ Enabled()

bool v8::internal::StatsCounter::Enabled ( )

Definition at line 32 of file counters.cc.

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

◆ Get()

int v8::internal::StatsCounter::Get ( )
inline

Definition at line 103 of file counters.h.

Here is the call graph for this function:

◆ GetInternalPointer()

std::atomic< int > * v8::internal::StatsCounter::GetInternalPointer ( )
inline

Definition at line 120 of file counters.h.

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

◆ GetPtr()

std::atomic< int > * v8::internal::StatsCounter::GetPtr ( )
inlineprivate

Definition at line 142 of file counters.h.

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

◆ Increment()

void v8::internal::StatsCounter::Increment ( int value = 1)
inline

Definition at line 105 of file counters.h.

Here is the call graph for this function:

◆ Initialize()

void v8::internal::StatsCounter::Initialize ( const char * name,
Counters * counters )
inlineprivate

Definition at line 127 of file counters.h.

Here is the caller graph for this function:

◆ Reset()

void v8::internal::StatsCounter::Reset ( )
inlineprivate

Definition at line 139 of file counters.h.

Here is the caller graph for this function:

◆ Set()

void v8::internal::StatsCounter::Set ( int value)
inline

Definition at line 102 of file counters.h.

Here is the call graph for this function:

◆ SetupPtrFromStatsTable()

std::atomic< int > * v8::internal::StatsCounter::SetupPtrFromStatsTable ( )
private

Definition at line 34 of file counters.cc.

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

Friends And Related Symbol Documentation

◆ Counters

friend class Counters
friend

Definition at line 123 of file counters.h.

◆ CountersInitializer

friend class CountersInitializer
friend

Definition at line 124 of file counters.h.

◆ StatsCounterResetter

friend class StatsCounterResetter
friend

Definition at line 125 of file counters.h.

Member Data Documentation

◆ counters_

Counters* v8::internal::StatsCounter::counters_ = nullptr
private

Definition at line 148 of file counters.h.

◆ name_

const char* v8::internal::StatsCounter::name_ = nullptr
private

Definition at line 149 of file counters.h.

◆ ptr_

std::atomic<std::atomic<int>*> v8::internal::StatsCounter::ptr_ {nullptr}
private

Definition at line 151 of file counters.h.


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