v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
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 |
PlatformData * | data () |
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 Mutex * | mutex_ = NULL |
static SignalSender * | instance_ = NULL |
static bool | signal_handler_installed_ = false |
static struct sigaction | old_signal_handler_ |
Static Public Attributes inherited from Thread | |
static const int | kMaxThreadNameLength = 16 |
Definition at line 707 of file platform-freebsd.cc.
enum SleepInterval |
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.
enum SleepInterval |
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.
enum SleepInterval |
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.
enum SleepInterval |
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.
|
inlineexplicit |
Definition at line 716 of file platform-freebsd.cc.
Referenced by SignalSender::AddActiveSampler().
|
inlineexplicit |
Definition at line 1096 of file platform-linux.cc.
|
inlineexplicit |
Definition at line 788 of file platform-openbsd.cc.
|
inlineexplicit |
Definition at line 709 of file platform-solaris.cc.
|
inlinestatic |
Definition at line 723 of file platform-freebsd.cc.
References SamplerRegistry::AddActiveSampler(), ASSERT, SignalSender::instance_, Sampler::interval(), SignalSender::interval_, SignalSender::mutex_, v8::internal::NULL, SignalSender::old_signal_handler_, SignalSender::signal_handler_installed_, SignalSender::SignalSender(), and Thread::Start().
|
inlinestatic |
Definition at line 732 of file platform-solaris.cc.
References SamplerRegistry::AddActiveSampler(), ASSERT, Sampler::interval(), v8::internal::NULL, and Thread::Start().
|
inlinestatic |
Definition at line 812 of file platform-openbsd.cc.
References SamplerRegistry::AddActiveSampler(), ASSERT, Sampler::interval(), v8::internal::NULL, and Thread::Start().
|
inlinestatic |
Definition at line 1120 of file platform-linux.cc.
References SamplerRegistry::AddActiveSampler(), ASSERT, Sampler::interval(), v8::internal::NULL, and Thread::Start().
|
inlinestatic |
Definition at line 799 of file platform-freebsd.cc.
References Sampler::IsProfiling(), Sampler::platform_data(), and SignalSender::SendProfilingSignal().
Referenced by SignalSender::Run().
|
inlinestatic |
Definition at line 802 of file platform-solaris.cc.
References Sampler::IsProfiling(), Sampler::platform_data(), SignalSender::SendProfilingSignal(), and Sampler::PlatformData::vm_tid().
|
inlinestatic |
Definition at line 881 of file platform-openbsd.cc.
References Sampler::IsProfiling(), Sampler::platform_data(), SignalSender::SendProfilingSignal(), and Sampler::PlatformData::vm_tid().
|
inlinestatic |
Definition at line 1189 of file platform-linux.cc.
References Sampler::IsProfiling(), Sampler::platform_data(), SignalSender::SendProfilingSignal(), and Sampler::PlatformData::vm_tid().
|
inlinestatic |
Definition at line 805 of file platform-freebsd.cc.
References Isolate::IsInitialized(), Sampler::isolate(), RuntimeProfiler::NotifyTick(), and Isolate::runtime_profiler().
Referenced by SignalSender::Run().
|
inlinestatic |
Definition at line 808 of file platform-solaris.cc.
References Isolate::IsInitialized(), Sampler::isolate(), RuntimeProfiler::NotifyTick(), and Isolate::runtime_profiler().
|
inlinestatic |
Definition at line 887 of file platform-openbsd.cc.
References Isolate::IsInitialized(), Sampler::isolate(), RuntimeProfiler::NotifyTick(), and Isolate::runtime_profiler().
|
inlinestatic |
Definition at line 1195 of file platform-linux.cc.
References Isolate::IsInitialized(), Sampler::isolate(), RuntimeProfiler::NotifyTick(), and Isolate::runtime_profiler().
|
inlinestatic |
Definition at line 716 of file platform-solaris.cc.
|
inlinestatic |
Definition at line 796 of file platform-openbsd.cc.
|
inlinestatic |
Definition at line 1104 of file platform-linux.cc.
|
inlinestatic |
Definition at line 743 of file platform-freebsd.cc.
References SamplerRegistry::GetState(), SamplerRegistry::HAS_NO_SAMPLERS, SignalSender::instance_, SignalSender::mutex_, v8::internal::NULL, SignalSender::old_signal_handler_, SamplerRegistry::RemoveActiveSampler(), SignalSender::signal_handler_installed_, and RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown().
|
inlinestatic |
Definition at line 745 of file platform-solaris.cc.
References SamplerRegistry::GetState(), SamplerRegistry::HAS_NO_SAMPLERS, v8::internal::NULL, SamplerRegistry::RemoveActiveSampler(), and RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown().
|
inlinestatic |
Definition at line 825 of file platform-openbsd.cc.
References SamplerRegistry::GetState(), SamplerRegistry::HAS_NO_SAMPLERS, v8::internal::NULL, SamplerRegistry::RemoveActiveSampler(), and RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown().
|
inlinestatic |
Definition at line 1133 of file platform-linux.cc.
References SamplerRegistry::GetState(), SamplerRegistry::HAS_NO_SAMPLERS, v8::internal::NULL, SamplerRegistry::RemoveActiveSampler(), and RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown().
|
inlinestatic |
Definition at line 725 of file platform-solaris.cc.
|
inlinestatic |
Definition at line 805 of file platform-openbsd.cc.
|
inlinestatic |
Definition at line 1113 of file platform-linux.cc.
|
inlinevirtual |
Implements Thread.
Definition at line 757 of file platform-solaris.cc.
References SamplerRegistry::GetState(), SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS, SamplerRegistry::HAS_NO_SAMPLERS, RuntimeProfiler::IsEnabled(), SamplerRegistry::IterateActiveSamplers(), and v8::internal::NULL.
|
inlinevirtual |
Implements Thread.
Definition at line 760 of file platform-freebsd.cc.
References SignalSender::DoCpuProfile(), SignalSender::DoRuntimeProfile(), SignalSender::FULL_INTERVAL, SamplerRegistry::GetState(), SignalSender::HALF_INTERVAL, SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS, SamplerRegistry::HAS_NO_SAMPLERS, RuntimeProfiler::IsEnabled(), SamplerRegistry::IterateActiveSamplers(), v8::internal::NULL, SignalSender::rate_limiter_, and SignalSender::Sleep().
|
inlinevirtual |
Implements Thread.
Definition at line 837 of file platform-openbsd.cc.
References SamplerRegistry::GetState(), SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS, SamplerRegistry::HAS_NO_SAMPLERS, RuntimeProfiler::IsEnabled(), SamplerRegistry::IterateActiveSamplers(), and v8::internal::NULL.
|
inlinevirtual |
Implements Thread.
Definition at line 1145 of file platform-linux.cc.
References SamplerRegistry::GetState(), SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS, SamplerRegistry::HAS_NO_SAMPLERS, RuntimeProfiler::IsEnabled(), SamplerRegistry::IterateActiveSamplers(), and v8::internal::NULL.
|
inline |
Definition at line 810 of file platform-freebsd.cc.
References SignalSender::signal_handler_installed_.
Referenced by SignalSender::DoCpuProfile().
|
inline |
Definition at line 813 of file platform-solaris.cc.
|
inline |
Definition at line 892 of file platform-openbsd.cc.
|
inline |
Definition at line 1200 of file platform-linux.cc.
|
inlinestatic |
Definition at line 713 of file platform-solaris.cc.
References OS::CreateMutex().
|
inlinestatic |
Definition at line 720 of file platform-freebsd.cc.
References OS::CreateMutex(), and SignalSender::mutex_.
|
inlinestatic |
Definition at line 793 of file platform-openbsd.cc.
References OS::CreateMutex().
|
inlinestatic |
Definition at line 1101 of file platform-linux.cc.
References OS::CreateMutex().
|
inline |
Definition at line 815 of file platform-freebsd.cc.
References ASSERT, SignalSender::HALF_INTERVAL, SignalSender::interval_, and v8::internal::USE().
Referenced by SignalSender::Run().
|
inline |
Definition at line 818 of file platform-solaris.cc.
References ASSERT, and v8::internal::USE().
|
inline |
Definition at line 897 of file platform-openbsd.cc.
References ASSERT, and v8::internal::USE().
|
inline |
Definition at line 1210 of file platform-linux.cc.
References ASSERT, and v8::internal::USE().
|
inlinestatic |
Definition at line 714 of file platform-solaris.cc.
|
inlinestatic |
Definition at line 721 of file platform-freebsd.cc.
References SignalSender::mutex_.
|
inlinestatic |
Definition at line 794 of file platform-openbsd.cc.
|
inlinestatic |
Definition at line 1102 of file platform-linux.cc.
|
static |
Definition at line 838 of file platform-freebsd.cc.
Referenced by SignalSender::AddActiveSampler(), and SignalSender::RemoveActiveSampler().
const int interval_ |
Definition at line 833 of file platform-freebsd.cc.
Referenced by SignalSender::AddActiveSampler(), and SignalSender::Sleep().
|
static |
Definition at line 714 of file platform-freebsd.cc.
Definition at line 837 of file platform-freebsd.cc.
Referenced by SignalSender::AddActiveSampler(), SignalSender::RemoveActiveSampler(), SignalSender::SetUp(), and SignalSender::TearDown().
|
static |
Definition at line 840 of file platform-freebsd.cc.
Referenced by SignalSender::AddActiveSampler(), and SignalSender::RemoveActiveSampler().
RuntimeProfilerRateLimiter rate_limiter_ |
Definition at line 834 of file platform-freebsd.cc.
Referenced by SignalSender::Run().
|
static |
Definition at line 839 of file platform-freebsd.cc.
Referenced by SignalSender::AddActiveSampler(), SignalSender::RemoveActiveSampler(), and SignalSender::SendProfilingSignal().
const int vm_tgid_ |
Definition at line 1232 of file platform-linux.cc.