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

Public Types

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

Public Member Functions

 SignalSender (int interval)
 
virtual void Run ()
 
void SendProfilingSignal (pthread_t tid)
 
void Sleep (SleepInterval full_or_half)
 
 SignalSender (int interval)
 
virtual void Run ()
 
void SendProfilingSignal (int tid)
 
void Sleep (SleepInterval full_or_half)
 
 SignalSender (int interval)
 
virtual void Run ()
 
void SendProfilingSignal (pthread_t tid)
 
void Sleep (SleepInterval full_or_half)
 
 SignalSender (int interval)
 
virtual void Run ()
 
void SendProfilingSignal (pthread_t tid)
 
void Sleep (SleepInterval full_or_half)
 
- 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_sender)
 
static void DoRuntimeProfile (Sampler *sampler, void *ignored)
 
static void SetUp ()
 
static void TearDown ()
 
static void InstallSignalHandler ()
 
static void RestoreSignalHandler ()
 
static void AddActiveSampler (Sampler *sampler)
 
static void RemoveActiveSampler (Sampler *sampler)
 
static void DoCpuProfile (Sampler *sampler, void *raw_sender)
 
static void DoRuntimeProfile (Sampler *sampler, void *ignored)
 
static void SetUp ()
 
static void TearDown ()
 
static void InstallSignalHandler ()
 
static void RestoreSignalHandler ()
 
static void AddActiveSampler (Sampler *sampler)
 
static void RemoveActiveSampler (Sampler *sampler)
 
static void DoCpuProfile (Sampler *sampler, void *raw_sender)
 
static void DoRuntimeProfile (Sampler *sampler, void *ignored)
 
static void SetUp ()
 
static void TearDown ()
 
static void InstallSignalHandler ()
 
static void RestoreSignalHandler ()
 
static void AddActiveSampler (Sampler *sampler)
 
static void RemoveActiveSampler (Sampler *sampler)
 
static void DoCpuProfile (Sampler *sampler, void *raw_sender)
 
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_
 
const int vm_tgid_
 

Static Public Attributes

static const int kSignalSenderStackSize = 64 * KB
 
static Mutexmutex_ = NULL
 
static SignalSenderinstance_ = NULL
 
static bool signal_handler_installed_ = false
 
static struct sigaction old_signal_handler_
 
- Static Public Attributes inherited from Thread
static const int kMaxThreadNameLength = 16
 

Detailed Description

Definition at line 707 of file platform-freebsd.cc.

Member Enumeration Documentation

Enumerator
HALF_INTERVAL 
FULL_INTERVAL 
HALF_INTERVAL 
FULL_INTERVAL 
HALF_INTERVAL 
FULL_INTERVAL 
HALF_INTERVAL 
FULL_INTERVAL 

Definition at line 702 of file platform-solaris.cc.

Enumerator
HALF_INTERVAL 
FULL_INTERVAL 
HALF_INTERVAL 
FULL_INTERVAL 
HALF_INTERVAL 
FULL_INTERVAL 
HALF_INTERVAL 
FULL_INTERVAL 

Definition at line 709 of file platform-freebsd.cc.

Enumerator
HALF_INTERVAL 
FULL_INTERVAL 
HALF_INTERVAL 
FULL_INTERVAL 
HALF_INTERVAL 
FULL_INTERVAL 
HALF_INTERVAL 
FULL_INTERVAL 

Definition at line 781 of file platform-openbsd.cc.

Enumerator
HALF_INTERVAL 
FULL_INTERVAL 
HALF_INTERVAL 
FULL_INTERVAL 
HALF_INTERVAL 
FULL_INTERVAL 
HALF_INTERVAL 
FULL_INTERVAL 

Definition at line 1089 of file platform-linux.cc.

Constructor & Destructor Documentation

SignalSender ( int  interval)
inlineexplicit

Definition at line 716 of file platform-freebsd.cc.

Referenced by SignalSender::AddActiveSampler().

SignalSender ( int  interval)
inlineexplicit

Definition at line 1096 of file platform-linux.cc.

SignalSender ( int  interval)
inlineexplicit

Definition at line 788 of file platform-openbsd.cc.

SignalSender ( int  interval)
inlineexplicit

Definition at line 709 of file platform-solaris.cc.

Member Function Documentation

static void AddActiveSampler ( Sampler sampler)
inlinestatic
static void AddActiveSampler ( Sampler sampler)
inlinestatic
static void AddActiveSampler ( Sampler sampler)
inlinestatic
static void DoCpuProfile ( Sampler sampler,
void *  raw_sender 
)
inlinestatic
static void DoCpuProfile ( Sampler sampler,
void *  raw_sender 
)
inlinestatic
static void DoCpuProfile ( Sampler sampler,
void *  raw_sender 
)
inlinestatic
static void DoCpuProfile ( Sampler sampler,
void *  raw_sender 
)
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 DoRuntimeProfile ( Sampler sampler,
void *  ignored 
)
inlinestatic
static void InstallSignalHandler ( )
inlinestatic

Definition at line 716 of file platform-solaris.cc.

static void InstallSignalHandler ( )
inlinestatic

Definition at line 796 of file platform-openbsd.cc.

static void InstallSignalHandler ( )
inlinestatic

Definition at line 1104 of file platform-linux.cc.

static void RestoreSignalHandler ( )
inlinestatic

Definition at line 725 of file platform-solaris.cc.

static void RestoreSignalHandler ( )
inlinestatic

Definition at line 805 of file platform-openbsd.cc.

static void RestoreSignalHandler ( )
inlinestatic

Definition at line 1113 of file platform-linux.cc.

void SendProfilingSignal ( pthread_t  tid)
inline

Definition at line 810 of file platform-freebsd.cc.

References SignalSender::signal_handler_installed_.

Referenced by SignalSender::DoCpuProfile().

void SendProfilingSignal ( pthread_t  tid)
inline

Definition at line 813 of file platform-solaris.cc.

void SendProfilingSignal ( pthread_t  tid)
inline

Definition at line 892 of file platform-openbsd.cc.

void SendProfilingSignal ( int  tid)
inline

Definition at line 1200 of file platform-linux.cc.

static void SetUp ( )
inlinestatic

Definition at line 713 of file platform-solaris.cc.

References OS::CreateMutex().

static void SetUp ( )
inlinestatic

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

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

static void SetUp ( )
inlinestatic

Definition at line 793 of file platform-openbsd.cc.

References OS::CreateMutex().

static void SetUp ( )
inlinestatic

Definition at line 1101 of file platform-linux.cc.

References OS::CreateMutex().

void Sleep ( SleepInterval  full_or_half)
inline
void Sleep ( SleepInterval  full_or_half)
inline

Definition at line 818 of file platform-solaris.cc.

References ASSERT, and v8::internal::USE().

void Sleep ( SleepInterval  full_or_half)
inline

Definition at line 897 of file platform-openbsd.cc.

References ASSERT, and v8::internal::USE().

void Sleep ( SleepInterval  full_or_half)
inline

Definition at line 1210 of file platform-linux.cc.

References ASSERT, and v8::internal::USE().

static void TearDown ( )
inlinestatic

Definition at line 714 of file platform-solaris.cc.

static void TearDown ( )
inlinestatic

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

References SignalSender::mutex_.

static void TearDown ( )
inlinestatic

Definition at line 794 of file platform-openbsd.cc.

static void TearDown ( )
inlinestatic

Definition at line 1102 of file platform-linux.cc.

Field Documentation

SignalSender * instance_ = NULL
static
const int interval_

Definition at line 833 of file platform-freebsd.cc.

Referenced by SignalSender::AddActiveSampler(), and SignalSender::Sleep().

static const int kSignalSenderStackSize = 64 * KB
static

Definition at line 714 of file platform-freebsd.cc.

static struct sigaction old_signal_handler_
static
RuntimeProfilerRateLimiter rate_limiter_

Definition at line 834 of file platform-freebsd.cc.

Referenced by SignalSender::Run().

bool signal_handler_installed_ = false
static
const int vm_tgid_

Definition at line 1232 of file platform-linux.cc.


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