v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Counter Class Reference

#include <d8.h>

Public Member Functions

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

Static Public Attributes

static const int kMaxNameSize = 64
 

Detailed Description

Definition at line 45 of file d8.h.

Member Function Documentation

void AddSample ( int32_t  sample)

Definition at line 959 of file d8.cc.

References sample.

Referenced by Shell::AddHistogramSample().

int32_t * Bind ( const char *  name,
bool  histogram 
)

Definition at line 949 of file d8.cc.

References Counter::is_histogram(), Counter::kMaxNameSize, and Counter::ptr().

int32_t count ( )
inline

Definition at line 50 of file d8.h.

Referenced by Shell::OnExit().

bool is_histogram ( )
inline

Definition at line 52 of file d8.h.

Referenced by Counter::Bind(), and Shell::OnExit().

int32_t* ptr ( )
inline

Definition at line 49 of file d8.h.

Referenced by Counter::Bind(), and Shell::LookupCounter().

int32_t sample_total ( )
inline

Definition at line 51 of file d8.h.

Referenced by Shell::OnExit().

Field Documentation

const int kMaxNameSize = 64
static

Definition at line 47 of file d8.h.

Referenced by Counter::Bind(), and CounterCollection::CounterCollection().


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