class ThreadSampler
Defined at line 92 of file ../../zircon/kernel/lib/thread_sampler/include/lib/thread_sampler/thread_sampler.h
Public Methods
void ThreadSampler ()
Defined at line 94 of file ../../zircon/kernel/lib/thread_sampler/include/lib/thread_sampler/thread_sampler.h
void ~ThreadSampler ()
Defined at line 95 of file ../../zircon/kernel/lib/thread_sampler/include/lib/thread_sampler/thread_sampler.h
void SetCurrCpuTimer ()
Set a timer based on the configured duration. When the timer expires, the currently running
thread will be marked to take a sample.
Defined at line 305 of file ../../zircon/kernel/lib/thread_sampler/thread_sampler.cc
zx::result<size_t> ReadUser (user_out_ptr<void>ptr,uint32_toffset,size_tlen)
zx::result<> SetUp (const zx_sampler_config_t & config)
Defined at line 31 of file ../../zircon/kernel/lib/thread_sampler/thread_sampler.cc
zx::result<> Start ()
Defined at line 71 of file ../../zircon/kernel/lib/thread_sampler/thread_sampler.cc
zx::result<> Stop ()
Defined at line 91 of file ../../zircon/kernel/lib/thread_sampler/thread_sampler.cc
SamplingState State ()
Defined at line 108 of file ../../zircon/kernel/lib/thread_sampler/include/lib/thread_sampler/thread_sampler.h
sampler::internal::PerCpuState & GetPerCpuState (cpu_num_t cpu_num)
Defined at line 119 of file ../../zircon/kernel/lib/thread_sampler/include/lib/thread_sampler/thread_sampler.h
zx::result<> Destroy ()
Defined at line 281 of file ../../zircon/kernel/lib/thread_sampler/thread_sampler.cc
zx::result<sampler::ReadToken> PrepareRead ()
Defined at line 365 of file ../../zircon/kernel/lib/thread_sampler/thread_sampler.cc
void FinishRead (sampler::ReadToken && token)
Defined at line 374 of file ../../zircon/kernel/lib/thread_sampler/thread_sampler.cc
ktl::pair<zx_status_t, size_t> ReadUser (const sampler::ReadToken &token,user_out_ptr<void>ptr,size_tlen)
ReadUser calls into VmObject::ReadUser. As we could be copying to pager backed user memory, we
must not hold any locks.
Defined at line 393 of file ../../zircon/kernel/lib/thread_sampler/thread_sampler.cc
zx::result<> SampleThread (zx_koid_tpid,zx_koid_ttid,GeneralRegsSourcesource,const void *gregs)
Given information about a thread and its registers, walk its userstack and write out a sample
if sampling is enabled.
Defined at line 139 of file ../../zircon/kernel/lib/thread_sampler/thread_sampler.cc