v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
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 |
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_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 Mutex * | mutex_ = NULL |
static SamplerThread * | instance_ = 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 } |
Definition at line 615 of file platform-cygwin.cc.
|
inlineexplicit |
Definition at line 619 of file platform-cygwin.cc.
Referenced by SamplerThread::AddActiveSampler().
|
inlineexplicit |
Definition at line 752 of file platform-macos.cc.
|
inlineexplicit |
Definition at line 1965 of file platform-win32.cc.
|
inlinestatic |
Definition at line 626 of file platform-cygwin.cc.
References SamplerRegistry::AddActiveSampler(), ASSERT, SamplerThread::instance_, Sampler::interval(), SamplerThread::interval_, SamplerThread::mutex_, v8::internal::NULL, SamplerThread::SamplerThread(), and Thread::Start().
Referenced by Sampler::Start().
|
inlinestatic |
Definition at line 759 of file platform-macos.cc.
References SamplerRegistry::AddActiveSampler(), ASSERT, Sampler::interval(), v8::internal::NULL, and Thread::Start().
|
inlinestatic |
Definition at line 1972 of file platform-win32.cc.
References SamplerRegistry::AddActiveSampler(), ASSERT, Sampler::interval(), v8::internal::NULL, and Thread::Start().
|
inlinestatic |
Definition at line 674 of file platform-cygwin.cc.
References Isolate::IsInitialized(), Sampler::isolate(), Sampler::IsProfiling(), and SamplerThread::SampleContext().
Referenced by SamplerThread::Run().
|
inlinestatic |
Definition at line 807 of file platform-macos.cc.
References Isolate::IsInitialized(), Sampler::isolate(), Sampler::IsProfiling(), and SamplerThread::SampleContext().
|
inlinestatic |
Definition at line 2020 of file platform-win32.cc.
References Isolate::IsInitialized(), Sampler::isolate(), Sampler::IsProfiling(), and SamplerThread::SampleContext().
|
inlinestatic |
Definition at line 682 of file platform-cygwin.cc.
References Isolate::IsInitialized(), Sampler::isolate(), RuntimeProfiler::NotifyTick(), and Isolate::runtime_profiler().
Referenced by SamplerThread::Run().
|
inlinestatic |
Definition at line 815 of file platform-macos.cc.
References Isolate::IsInitialized(), Sampler::isolate(), RuntimeProfiler::NotifyTick(), and Isolate::runtime_profiler().
|
inlinestatic |
Definition at line 2028 of file platform-win32.cc.
References Isolate::IsInitialized(), Sampler::isolate(), RuntimeProfiler::NotifyTick(), and Isolate::runtime_profiler().
|
inlinestatic |
Definition at line 637 of file platform-cygwin.cc.
References SamplerRegistry::GetState(), SamplerRegistry::HAS_NO_SAMPLERS, SamplerThread::instance_, SamplerThread::mutex_, v8::internal::NULL, SamplerRegistry::RemoveActiveSampler(), and RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown().
Referenced by Sampler::Stop().
|
inlinestatic |
Definition at line 770 of file platform-macos.cc.
References SamplerRegistry::GetState(), SamplerRegistry::HAS_NO_SAMPLERS, v8::internal::NULL, SamplerRegistry::RemoveActiveSampler(), and RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown().
|
inlinestatic |
Definition at line 1983 of file platform-win32.cc.
References SamplerRegistry::GetState(), SamplerRegistry::HAS_NO_SAMPLERS, v8::internal::NULL, SamplerRegistry::RemoveActiveSampler(), and RuntimeProfiler::StopRuntimeProfilerThreadBeforeShutdown().
|
inlinevirtual |
Implements Thread.
Definition at line 648 of file platform-cygwin.cc.
References SamplerThread::DoCpuProfile(), SamplerThread::DoRuntimeProfile(), SamplerRegistry::GetState(), SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS, SamplerRegistry::HAS_NO_SAMPLERS, SamplerThread::interval_, RuntimeProfiler::IsEnabled(), SamplerRegistry::IterateActiveSamplers(), v8::internal::NULL, SamplerThread::rate_limiter_, and OS::Sleep().
|
inlinevirtual |
Implements Thread.
Definition at line 781 of file platform-macos.cc.
References SamplerRegistry::GetState(), SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS, SamplerRegistry::HAS_NO_SAMPLERS, RuntimeProfiler::IsEnabled(), SamplerRegistry::IterateActiveSamplers(), v8::internal::NULL, and OS::Sleep().
|
inlinevirtual |
Implements Thread.
Definition at line 1994 of file platform-win32.cc.
References SamplerRegistry::GetState(), SamplerRegistry::HAS_CPU_PROFILING_SAMPLERS, SamplerRegistry::HAS_NO_SAMPLERS, RuntimeProfiler::IsEnabled(), SamplerRegistry::IterateActiveSamplers(), v8::internal::NULL, and OS::Sleep().
|
inline |
Definition at line 687 of file platform-cygwin.cc.
References Isolate::current_vm_state(), v8::internal::DWORD(), TickSample::fp, v8::internal::HANDLE(), Sampler::isolate(), v8::internal::NULL, TickSample::pc, Sampler::platform_data(), sample, Sampler::SampleStack(), TickSample::sp, TickSample::state, Sampler::Tick(), and CpuProfiler::TickSampleEvent().
Referenced by SamplerThread::DoCpuProfile().
|
inline |
Definition at line 820 of file platform-macos.cc.
References Isolate::current_vm_state(), TickSample::fp, v8::internal::ip, Sampler::isolate(), v8::internal::NULL, TickSample::pc, Sampler::platform_data(), Sampler::PlatformData::profiled_thread(), sample, Sampler::SampleStack(), v8::internal::sp, TickSample::sp, TickSample::state, Sampler::Tick(), and CpuProfiler::TickSampleEvent().
|
inline |
Definition at line 2033 of file platform-win32.cc.
References Isolate::current_vm_state(), v8::internal::DWORD(), TickSample::fp, v8::internal::HANDLE(), Sampler::isolate(), v8::internal::NULL, TickSample::pc, Sampler::platform_data(), Sampler::PlatformData::profiled_thread(), sample, Sampler::SampleStack(), TickSample::sp, TickSample::state, Sampler::Tick(), and CpuProfiler::TickSampleEvent().
|
inlinestatic |
Definition at line 623 of file platform-cygwin.cc.
References OS::CreateMutex(), and SamplerThread::mutex_.
Referenced by OS::SetUp().
|
inlinestatic |
Definition at line 756 of file platform-macos.cc.
References OS::CreateMutex().
|
inlinestatic |
Definition at line 1969 of file platform-win32.cc.
References OS::CreateMutex().
|
inlinestatic |
Definition at line 624 of file platform-cygwin.cc.
References SamplerThread::mutex_.
Referenced by OS::TearDown().
|
inlinestatic |
Definition at line 757 of file platform-macos.cc.
|
inlinestatic |
Definition at line 1970 of file platform-win32.cc.
|
static |
Definition at line 725 of file platform-cygwin.cc.
Referenced by SamplerThread::AddActiveSampler(), and SamplerThread::RemoveActiveSampler().
const int interval_ |
Definition at line 720 of file platform-cygwin.cc.
Referenced by SamplerThread::AddActiveSampler(), and SamplerThread::Run().
|
static |
Definition at line 617 of file platform-cygwin.cc.
Definition at line 724 of file platform-cygwin.cc.
Referenced by SamplerThread::AddActiveSampler(), SamplerThread::RemoveActiveSampler(), SamplerThread::SetUp(), and SamplerThread::TearDown().
RuntimeProfilerRateLimiter rate_limiter_ |
Definition at line 721 of file platform-cygwin.cc.
Referenced by SamplerThread::Run().