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

Public Member Functions

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

Static Public Member Functions

static void SetUp ()
 
static void TearDown ()
 
static void AddActiveSampler (Sampler *sampler)
 
static void RemoveActiveSampler (Sampler *sampler)
 
static void DoCpuProfile (Sampler *sampler, void *raw_sampler_thread)
 
static void DoRuntimeProfile (Sampler *sampler, void *ignored)
 
static void SetUp ()
 
static void TearDown ()
 
static void AddActiveSampler (Sampler *sampler)
 
static void RemoveActiveSampler (Sampler *sampler)
 
static void DoCpuProfile (Sampler *sampler, void *raw_sampler_thread)
 
static void DoRuntimeProfile (Sampler *sampler, void *ignored)
 
static void SetUp ()
 
static void TearDown ()
 
static void AddActiveSampler (Sampler *sampler)
 
static void RemoveActiveSampler (Sampler *sampler)
 
static void DoCpuProfile (Sampler *sampler, void *raw_sampler_thread)
 
static void DoRuntimeProfile (Sampler *sampler, void *ignored)
 
- 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 ()
 

Data Fields

const int interval_
 
RuntimeProfilerRateLimiter rate_limiter_
 

Static Public Attributes

static const int kSamplerThreadStackSize = 64 * KB
 
static Mutexmutex_ = NULL
 
static SamplerThreadinstance_ = NULL
 
- 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 615 of file platform-cygwin.cc.

Constructor & Destructor Documentation

SamplerThread ( int  interval)
inlineexplicit

Definition at line 619 of file platform-cygwin.cc.

Referenced by SamplerThread::AddActiveSampler().

SamplerThread ( int  interval)
inlineexplicit

Definition at line 752 of file platform-macos.cc.

SamplerThread ( int  interval)
inlineexplicit

Definition at line 1965 of file platform-win32.cc.

Member Function Documentation

static void AddActiveSampler ( Sampler sampler)
inlinestatic
static void AddActiveSampler ( Sampler sampler)
inlinestatic
static void DoCpuProfile ( Sampler sampler,
void *  raw_sampler_thread 
)
inlinestatic
static void DoCpuProfile ( Sampler sampler,
void *  raw_sampler_thread 
)
inlinestatic
static void DoCpuProfile ( Sampler sampler,
void *  raw_sampler_thread 
)
inlinestatic
static void DoRuntimeProfile ( Sampler sampler,
void *  ignored 
)
inlinestatic
static void DoRuntimeProfile ( Sampler sampler,
void *  ignored 
)
inlinestatic
static void DoRuntimeProfile ( Sampler sampler,
void *  ignored 
)
inlinestatic
static void SetUp ( )
inlinestatic

Definition at line 623 of file platform-cygwin.cc.

References OS::CreateMutex(), and SamplerThread::mutex_.

Referenced by OS::SetUp().

static void SetUp ( )
inlinestatic

Definition at line 756 of file platform-macos.cc.

References OS::CreateMutex().

static void SetUp ( )
inlinestatic

Definition at line 1969 of file platform-win32.cc.

References OS::CreateMutex().

static void TearDown ( )
inlinestatic

Definition at line 624 of file platform-cygwin.cc.

References SamplerThread::mutex_.

Referenced by OS::TearDown().

static void TearDown ( )
inlinestatic

Definition at line 757 of file platform-macos.cc.

static void TearDown ( )
inlinestatic

Definition at line 1970 of file platform-win32.cc.

Field Documentation

SamplerThread * instance_ = NULL
static
const int interval_

Definition at line 720 of file platform-cygwin.cc.

Referenced by SamplerThread::AddActiveSampler(), and SamplerThread::Run().

static const int kSamplerThreadStackSize = 64 * KB
static

Definition at line 617 of file platform-cygwin.cc.

RuntimeProfilerRateLimiter rate_limiter_

Definition at line 721 of file platform-cygwin.cc.

Referenced by SamplerThread::Run().


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