Records

Functions

  • std::string GetThreadName (const zx::thread & thread)

    Defined at line 32 of file ../../src/performance/cpu_profiler/targets.h

  • template <typename T>
    bool IsAarch32 (const T & state)

    Defined at line 37 of file ../../src/performance/cpu_profiler/stack_sampler.cc

  • profiler::ComponentWatcher::ComponentEventHandler MakeOnStartHandler (fxl::WeakPtr<profiler::Sampler> sampler)

    Defined at line 125 of file ../../src/performance/cpu_profiler/component.cc

  • zx::result<> TraverseRealm (const std::string & moniker, const fit::function<zx::result<> (const std::string &)> & f)

    Given a moniker `moniker` and function `f`, call `f` on `moniker` and each child of `moniker`.

    The results are `and`ed together, short circuiting and returning early on any failure.

    Defined at line 182 of file ../../src/performance/cpu_profiler/component.cc

  • zx::result<std::map<std::vector<std::byte>, profiler::Module>> GetProcessModules (const zx::process & , elf_search::Searcher & searcher)

    Defined at line 533 of file ../../src/performance/cpu_profiler/targets.cc

  • zx::result<profiler::ProcessTarget> MakeProcessTarget (zx::process process, elf_search::Searcher & searcher)

    Given a process, create a process target containing it and all its threads

    Defined at line 207 of file ../../src/performance/cpu_profiler/targets.cc

  • zx::result<profiler::JobTarget> MakeJobTarget (zx::job job, std::span<const zx_koid_t> ancestry, elf_search::Searcher & searcher)

    Given a job, create a job target containing it, its processes, their threads, and its child

    jobs. Additionally, the created job will be given the ancestry specified by `ancestry`.

    Defined at line 258 of file ../../src/performance/cpu_profiler/targets.cc

  • zx::result<profiler::JobTarget> MakeJobTarget (zx::job job, elf_search::Searcher & searcher)

    Given a job, create a job target containing it, its processes, their threads, and its child

    jobs. The resulting job will have no parent or ancestors.

    Defined at line 365 of file ../../src/performance/cpu_profiler/targets.cc