class TestThreadSampler

Defined at line 27 of file ../../zircon/kernel/lib/thread_sampler/tests/thread_sampler_tests.cc

A test version of ThreadSampler which overrides functions

for testing purposes.

Public Methods

void TestThreadSampler ()

Defined at line 29 of file ../../zircon/kernel/lib/thread_sampler/tests/thread_sampler_tests.cc

fbl::Array<sampler::internal::PerCpuState> & get_per_cpu_state ()

Defined at line 31 of file ../../zircon/kernel/lib/thread_sampler/tests/thread_sampler_tests.cc

ktl::atomic<uint64_t> & get_state ()

Defined at line 32 of file ../../zircon/kernel/lib/thread_sampler/tests/thread_sampler_tests.cc

void set_state (sampler::SamplingState s)

Defined at line 33 of file ../../zircon/kernel/lib/thread_sampler/tests/thread_sampler_tests.cc

sampler::ThreadSampler::ThreadSamplerLock * get_lock ()

Defined at line 34 of file ../../zircon/kernel/lib/thread_sampler/tests/thread_sampler_tests.cc

uint64_t get_buffer_ref_count ()

Defined at line 35 of file ../../zircon/kernel/lib/thread_sampler/tests/thread_sampler_tests.cc

void SampleThread (zx_koid_t pid, zx_koid_t tid, GeneralRegsSource source, void * gregs)

Defined at line 41 of file ../../zircon/kernel/lib/thread_sampler/tests/thread_sampler_tests.cc

bool RepeatStartStopTest ()

Defined at line 61 of file ../../zircon/kernel/lib/thread_sampler/tests/thread_sampler_tests.cc

bool WriteSampleTest ()

Defined at line 113 of file ../../zircon/kernel/lib/thread_sampler/tests/thread_sampler_tests.cc

bool StateChange ()

Defined at line 185 of file ../../zircon/kernel/lib/thread_sampler/tests/thread_sampler_tests.cc

bool AcquireBuffers ()

Defined at line 225 of file ../../zircon/kernel/lib/thread_sampler/tests/thread_sampler_tests.cc