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

#include <d8.h>

Collaboration diagram for v8::Counter:

Public Member Functions

void Bind (const char *name, bool histogram)
 
int * ptr ()
 
int count () const
 
int sample_total () const
 
bool is_histogram () const
 
void AddSample (int32_t sample)
 

Static Public Attributes

static const int kMaxNameSize = 64
 

Private Attributes

std::atomic< int > count_
 
std::atomic< int > sample_total_
 
bool is_histogram_
 
char name_ [kMaxNameSize]
 

Detailed Description

Definition at line 46 of file d8.h.

Member Function Documentation

◆ AddSample()

void v8::Counter::AddSample ( int32_t sample)

Definition at line 3726 of file d8.cc.

Here is the caller graph for this function:

◆ Bind()

void v8::Counter::Bind ( const char * name,
bool histogram )

Definition at line 3719 of file d8.cc.

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

◆ count()

int v8::Counter::count ( ) const
inline

Definition at line 55 of file d8.h.

Here is the caller graph for this function:

◆ is_histogram()

bool v8::Counter::is_histogram ( ) const
inline

Definition at line 59 of file d8.h.

Here is the caller graph for this function:

◆ ptr()

int * v8::Counter::ptr ( )
inline

Definition at line 51 of file d8.h.

Here is the caller graph for this function:

◆ sample_total()

int v8::Counter::sample_total ( ) const
inline

Definition at line 56 of file d8.h.

Here is the caller graph for this function:

Member Data Documentation

◆ count_

std::atomic<int> v8::Counter::count_
private

Definition at line 63 of file d8.h.

◆ is_histogram_

bool v8::Counter::is_histogram_
private

Definition at line 65 of file d8.h.

◆ kMaxNameSize

const int v8::Counter::kMaxNameSize = 64
static

Definition at line 48 of file d8.h.

◆ name_

char v8::Counter::name_[kMaxNameSize]
private

Definition at line 66 of file d8.h.

◆ sample_total_

std::atomic<int> v8::Counter::sample_total_
private

Definition at line 64 of file d8.h.


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