Lines Matching full:sampler
5 #include "src/profiler/sampler.h"
243 class Sampler::PlatformData : public PlatformDataCommon {
255 // Win32 profiler support. On Cygwin we use the same sampler implementation as
258 class Sampler::PlatformData : public PlatformDataCommon {
262 // going to use it in the sampler thread. Using GetThreadHandle() will
427 Sampler* sampler = isolate->logger()->sampler();
428 if (sampler == NULL) return;
562 sampler->SampleStack(state);
580 static void AddActiveSampler(Sampler* sampler) {
586 instance_ = new SamplerThread(sampler->interval());
590 DCHECK(sampler->IsActive());
591 DCHECK(!instance_->active_samplers_.Contains(sampler));
592 DCHECK(instance_->interval_ == sampler->interval());
593 instance_->active_samplers_.Add(sampler);
598 static void RemoveActiveSampler(Sampler* sampler) {
603 DCHECK(sampler->IsActive());
604 bool removed = instance_->active_samplers_.RemoveElement(sampler);
630 Sampler* sampler = active_samplers_.at(i);
631 if (!sampler->IsProfiling()) continue;
632 sampler->DoSample();
645 List<Sampler*> active_samplers_;
731 void Sampler::SetUp() {
739 void Sampler::TearDown() {
747 Sampler::Sampler(Isolate* isolate, int interval)
759 Sampler::~Sampler() {
765 void Sampler::Start() {
772 void Sampler::Stop() {
779 void Sampler::IncreaseProfilingDepth() {
787 void Sampler::DecreaseProfilingDepth() {
795 void Sampler::SampleStack(const v8::RegisterState& state) {
814 void Sampler::DoSample() {
821 void Sampler::DoSample() {