Home | History | Annotate | Download | only in src

Lines Matching refs:sampler

600 // On Cygwin we use the same sampler implementation as on win32.
602 class Sampler::PlatformData : public Malloced {
606 // going to use it in the sampler thread. Using GetThreadHandle() will
637 static void AddActiveSampler(Sampler* sampler) {
639 SamplerRegistry::AddActiveSampler(sampler);
641 instance_ = new SamplerThread(sampler->interval());
644 ASSERT(instance_->interval_ == sampler->interval());
648 static void RemoveActiveSampler(Sampler* sampler) {
650 SamplerRegistry::RemoveActiveSampler(sampler);
685 static void DoCpuProfile(Sampler* sampler, void* raw_sampler_thread) {
686 if (!sampler->isolate()->IsInitialized()) return;
687 if (!sampler->IsProfiling()) return;
690 sampler_thread->SampleContext(sampler);
693 static void DoRuntimeProfile(Sampler* sampler, void* ignored) {
694 if (!sampler->isolate()->IsInitialized()) return;
695 sampler->isolate()->runtime_profiler()->NotifyTick();
698 void SampleContext(Sampler* sampler) {
699 HANDLE profiled_thread = sampler->platform_data()->profiled_thread();
707 TickSample* sample = CpuProfiler::TickSampleEvent(sampler->isolate());
712 sample->state = sampler->isolate()->current_vm_state();
725 sampler->SampleStack(sample);
726 sampler->Tick(sample);
747 Sampler::Sampler(Isolate* isolate, int interval)
757 Sampler::~Sampler() {
763 void Sampler::Start() {
770 void Sampler::Stop() {