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
SamplingCircularQueue Class Reference

#include <circular-queue.h>

Public Types

typedef AtomicWord Cell
 

Public Member Functions

 SamplingCircularQueue (int record_size_in_bytes, int desired_chunk_size_in_bytes, int buffer_size_in_chunks)
 
 ~SamplingCircularQueue ()
 
 INLINE (void *Enqueue())
 
void * StartDequeue ()
 
void FinishDequeue ()
 
void FlushResidualRecords ()
 

Static Public Attributes

static const Cell kClear = 0
 
static const Cell kEnd = -1
 

Detailed Description

Definition at line 45 of file circular-queue.h.

Member Typedef Documentation

typedef AtomicWord Cell

Definition at line 69 of file circular-queue.h.

Constructor & Destructor Documentation

SamplingCircularQueue ( int  record_size_in_bytes,
int  desired_chunk_size_in_bytes,
int  buffer_size_in_chunks 
)

Definition at line 82 of file circular-queue.cc.

References v8::internal::DeleteArray().

Member Function Documentation

void FinishDequeue ( )

Definition at line 103 of file circular-queue.cc.

References SamplingCircularQueue::kClear, and v8::internal::NULL.

void FlushResidualRecords ( )

Definition at line 116 of file circular-queue.cc.

Referenced by ProfilerEventsProcessor::Run().

INLINE ( void *  Enqueue())
void * StartDequeue ( )

Definition at line 88 of file circular-queue.cc.

References SamplingCircularQueue::kClear, and v8::internal::NULL.

Field Documentation

const Cell kEnd = -1
static

Definition at line 72 of file circular-queue.h.

Referenced by SamplingCircularQueue::SamplingCircularQueue().


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