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

#include <counters.h>

Public Member Functions

 StatsCounter ()
 
 StatsCounter (Isolate *isolate, const char *name)
 
void Set (int value)
 
void Increment ()
 
void Increment (int value)
 
void Decrement ()
 
void Decrement (int value)
 
bool Enabled ()
 
int * GetInternalPointer ()
 

Protected Member Functions

int * GetPtr ()
 

Detailed Description

Definition at line 116 of file counters.h.

Constructor & Destructor Documentation

StatsCounter ( )
inline

Definition at line 118 of file counters.h.

StatsCounter ( Isolate isolate,
const char *  name 
)
inlineexplicit

Definition at line 119 of file counters.h.

Member Function Documentation

void Decrement ( )
inline

Definition at line 141 of file counters.h.

References StatsCounter::GetPtr().

void Decrement ( int  value)
inline

Definition at line 146 of file counters.h.

References StatsCounter::GetPtr().

bool Enabled ( )
inline

Definition at line 153 of file counters.h.

References StatsCounter::GetPtr(), and v8::internal::NULL.

Referenced by HGraphBuilder::AddIncrementCounter().

int* GetInternalPointer ( )
inline

Definition at line 160 of file counters.h.

References ASSERT, StatsCounter::GetPtr(), and v8::internal::NULL.

void Increment ( )
inline

Definition at line 129 of file counters.h.

References StatsCounter::GetPtr().

void Increment ( int  value)
inline

Definition at line 134 of file counters.h.

References StatsCounter::GetPtr().

void Set ( int  value)
inline

Definition at line 123 of file counters.h.

References StatsCounter::GetPtr().


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