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

#include <counters.h>

Inheritance diagram for v8::internal::Histogram:
Collaboration diagram for v8::internal::Histogram:

Public Member Functions

V8_EXPORT_PRIVATE void AddSample (int sample)
 
bool Enabled ()
 
const char * name () const
 
int min () const
 
int max () const
 
int num_buckets () const
 
void AssertReportsToCounters (Counters *expected_counters)
 

Protected Member Functions

 Histogram ()=default
 
 Histogram (const Histogram &)=delete
 
Histogramoperator= (const Histogram &)=delete
 
void Initialize (const char *name, int min, int max, int num_buckets, Counters *counters)
 
Counterscounters () const
 
void Reset ()
 
void EnsureCreated (bool create_new=true)
 

Private Member Functions

V8_EXPORT_PRIVATE void * CreateHistogram () const
 

Private Attributes

const char * name_
 
int min_
 
int max_
 
int num_buckets_
 
std::atomic< void * > histogram_
 
Counterscounters_
 
base::Mutex mutex_
 

Friends

class Counters
 
class CountersInitializer
 
class HistogramResetter
 

Detailed Description

Definition at line 156 of file counters.h.

Constructor & Destructor Documentation

◆ Histogram() [1/2]

v8::internal::Histogram::Histogram ( )
protecteddefault

◆ Histogram() [2/2]

v8::internal::Histogram::Histogram ( const Histogram & )
protecteddelete

Member Function Documentation

◆ AddSample()

void v8::internal::Histogram::AddSample ( int sample)

Definition at line 50 of file counters.cc.

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

◆ AssertReportsToCounters()

void v8::internal::Histogram::AssertReportsToCounters ( Counters * expected_counters)
inline

Definition at line 172 of file counters.h.

◆ counters()

Counters * v8::internal::Histogram::counters ( ) const
inlineprotected

Definition at line 192 of file counters.h.

Here is the caller graph for this function:

◆ CreateHistogram()

void * v8::internal::Histogram::CreateHistogram ( ) const
private

Definition at line 56 of file counters.cc.

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

◆ Enabled()

bool v8::internal::Histogram::Enabled ( )
inline

Definition at line 162 of file counters.h.

Here is the caller graph for this function:

◆ EnsureCreated()

void v8::internal::Histogram::EnsureCreated ( bool create_new = true)
inlineprotected

Definition at line 199 of file counters.h.

Here is the call graph for this function:

◆ Initialize()

void v8::internal::Histogram::Initialize ( const char * name,
int min,
int max,
int num_buckets,
Counters * counters )
inlineprotected

Definition at line 181 of file counters.h.

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

◆ max()

int v8::internal::Histogram::max ( ) const
inline

Definition at line 167 of file counters.h.

Here is the caller graph for this function:

◆ min()

int v8::internal::Histogram::min ( ) const
inline

Definition at line 166 of file counters.h.

Here is the caller graph for this function:

◆ name()

const char * v8::internal::Histogram::name ( ) const
inline

Definition at line 164 of file counters.h.

Here is the caller graph for this function:

◆ num_buckets()

int v8::internal::Histogram::num_buckets ( ) const
inline

Definition at line 168 of file counters.h.

Here is the caller graph for this function:

◆ operator=()

Histogram & v8::internal::Histogram::operator= ( const Histogram & )
protecteddelete

◆ Reset()

void v8::internal::Histogram::Reset ( )
inlineprotected

Definition at line 196 of file counters.h.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ Counters

friend class Counters
friend

Definition at line 208 of file counters.h.

◆ CountersInitializer

friend class CountersInitializer
friend

Definition at line 209 of file counters.h.

◆ HistogramResetter

friend class HistogramResetter
friend

Definition at line 210 of file counters.h.

Member Data Documentation

◆ counters_

Counters* v8::internal::Histogram::counters_
private

Definition at line 219 of file counters.h.

◆ histogram_

std::atomic<void*> v8::internal::Histogram::histogram_
private

Definition at line 218 of file counters.h.

◆ max_

int v8::internal::Histogram::max_
private

Definition at line 216 of file counters.h.

◆ min_

int v8::internal::Histogram::min_
private

Definition at line 215 of file counters.h.

◆ mutex_

base::Mutex v8::internal::Histogram::mutex_
private

Definition at line 220 of file counters.h.

◆ name_

const char* v8::internal::Histogram::name_
private

Definition at line 214 of file counters.h.

◆ num_buckets_

int v8::internal::Histogram::num_buckets_
private

Definition at line 217 of file counters.h.


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