Lines Matching refs:sampler
4 // Tests of sampler functionalities.
6 #include "src/libsampler/v8-sampler.h"
13 namespace sampler {
21 explicit TestSamplingThread(Sampler* sampler)
24 sampler_(sampler) {}
35 Sampler* sampler_;
39 class TestSampler : public Sampler {
41 explicit TestSampler(Isolate* isolate) : Sampler(isolate) {}
44 void* frames[Sampler::kMaxFramesCount];
47 Sampler::kMaxFramesCount, &sample_info);
76 Sampler::SetUp();
77 TestSampler* sampler = new TestSampler(env->GetIsolate());
78 TestSamplingThread* thread = new TestSamplingThread(sampler);
79 sampler->IncreaseProfilingDepth();
80 sampler->Start();
81 sampler->StartCountingSamples();
85 } while (sampler->js_sample_count() < min_js_samples ||
86 sampler->external_sample_count() < min_external_samples);
87 sampler->Stop();
88 sampler->DecreaseProfilingDepth();
91 delete sampler;
92 Sampler::TearDown();
140 } // namespace sampler