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
SamplerThread Class Reference
Inheritance diagram for SamplerThread:
Collaboration diagram for SamplerThread:

Public Member Functions

 SamplerThread (int interval)
 
virtual void Run ()
 
- Public Member Functions inherited from Thread
 Thread (const Options &options)
 
virtual ~Thread ()
 
void Start ()
 
void StartSynchronously ()
 
void Join ()
 
const char * name () const
 
PlatformDatadata ()
 
void NotifyStartedAndRun ()
 

Static Public Member Functions

static void SetUp ()
 
static void TearDown ()
 
static void AddActiveSampler (Sampler *sampler)
 
static void RemoveActiveSampler (Sampler *sampler)
 
- Static Public Member Functions inherited from Thread
static LocalStorageKey CreateThreadLocalKey ()
 
static void DeleteThreadLocalKey (LocalStorageKey key)
 
static void * GetThreadLocal (LocalStorageKey key)
 
static int GetThreadLocalInt (LocalStorageKey key)
 
static void SetThreadLocal (LocalStorageKey key, void *value)
 
static void SetThreadLocalInt (LocalStorageKey key, int value)
 
static bool HasThreadLocal (LocalStorageKey key)
 
static void * GetExistingThreadLocal (LocalStorageKey key)
 
static void YieldCPU ()
 

Static Public Attributes

static const int kSamplerThreadStackSize = 64 * KB
 
- Static Public Attributes inherited from Thread
static const int kMaxThreadNameLength = 16
 

Additional Inherited Members

- Public Types inherited from Thread
enum  LocalStorageKey { LOCAL_STORAGE_KEY_MIN_VALUE = kMinInt, LOCAL_STORAGE_KEY_MAX_VALUE = kMaxInt }
 

Detailed Description

Definition at line 499 of file sampler.cc.

Constructor & Destructor Documentation

SamplerThread ( int  interval)
inlineexplicit

Definition at line 503 of file sampler.cc.

Referenced by SamplerThread::AddActiveSampler().

Member Function Documentation

static void AddActiveSampler ( Sampler sampler)
inlinestatic
static void RemoveActiveSampler ( Sampler sampler)
inlinestatic

Definition at line 528 of file sampler.cc.

References ASSERT, Sampler::IsActive(), Thread::Join(), v8::internal::NULL, and v8::internal::USE().

Referenced by Sampler::Stop().

virtual void Run ( )
inlinevirtual
static void SetUp ( )
inlinestatic

Definition at line 507 of file sampler.cc.

Referenced by Sampler::SetUp().

static void TearDown ( )
inlinestatic

Definition at line 508 of file sampler.cc.

References v8::internal::NULL.

Referenced by Sampler::TearDown().

Field Documentation

const int kSamplerThreadStackSize = 64 * KB
static

Definition at line 501 of file sampler.cc.


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