Home | History | Annotate | Download | only in src

Lines Matching refs:Sampler

1937 class Sampler::PlatformData : public Malloced {
1941 // going to use it in the sampler thread. Using GetThreadHandle() will
1972 static void AddActiveSampler(Sampler* sampler) {
1974 SamplerRegistry::AddActiveSampler(sampler);
1976 instance_ = new SamplerThread(sampler->interval());
1979 ASSERT(instance_->interval_ == sampler->interval());
1983 static void RemoveActiveSampler(Sampler* sampler) {
1985 SamplerRegistry::RemoveActiveSampler(sampler);
2020 static void DoCpuProfile(Sampler* sampler, void* raw_sampler_thread) {
2021 if (!sampler->isolate()->IsInitialized()) return;
2022 if (!sampler->IsProfiling()) return;
2025 sampler_thread->SampleContext(sampler);
2028 static void DoRuntimeProfile(Sampler* sampler, void* ignored) {
2029 if (!sampler->isolate()->IsInitialized()) return;
2030 sampler->isolate()->runtime_profiler()->NotifyTick();
2033 void SampleContext(Sampler* sampler) {
2034 HANDLE profiled_thread = sampler->platform_data()->profiled_thread();
2042 TickSample* sample = CpuProfiler::TickSampleEvent(sampler->isolate());
2047 sample->state = sampler->isolate()->current_vm_state();
2060 sampler->SampleStack(sample);
2061 sampler->Tick(sample);
2082 Sampler::Sampler(Isolate* isolate, int interval)
2092 Sampler::~Sampler() {
2098 void Sampler::Start() {
2105 void Sampler::Stop() {