class ProfileManager
Defined at line 29 of file ../../src/zircon/bin/hwstress/profile_manager.h
A ProfileManager creates, caches, and applies Zircon scheduling profilings to
threads.
Thread safe.
Public Methods
std::unique_ptr<ProfileManager> CreateFromEnvironment ()
Create a new profile manager from services in the environment.
Defined at line 30 of file ../../src/zircon/bin/hwstress/profile_manager.cc
void ProfileManager (zx::resource profile_resource_)
Create a new profile manager.
Defined at line 55 of file ../../src/zircon/bin/hwstress/profile_manager.cc
zx_status_t SetThreadAffinity (std::thread * thread, uint32_t mask)
Apply a given affinity mask to the given thread.
Bit |i| in the mask being set corresponds to the thread being allowed to run on CPU |i|.
Defined at line 76 of file ../../src/zircon/bin/hwstress/profile_manager.cc
zx_status_t SetThreadAffinity (const zx::thread & thread, uint32_t mask)
Defined at line 58 of file ../../src/zircon/bin/hwstress/profile_manager.cc
zx_status_t SetThreadPriority (std::thread * thread, uint32_t priority)
Apply a given priority mask to the given thread.
Defined at line 98 of file ../../src/zircon/bin/hwstress/profile_manager.cc
zx_status_t SetThreadPriority (const zx::thread & thread, uint32_t priority)
Defined at line 80 of file ../../src/zircon/bin/hwstress/profile_manager.cc