|
Adaptyst
A comprehensive and architecture-agnostic performance analysis tool
|
#include <process.hpp>
Public Member Functions | |
| CPUConfig () | |
| CPUConfig (std::string mask) | |
| bool | is_valid () const |
| int | get_profiler_thread_count () const |
A class describing the configuration of CPU cores for performance analysis.
Specifically, CPUConfig describes what cores should be used for performance analysis, what cores should be used for running the workflow, what cores should be used for both, and what cores should not be used at all.
|
inline |
|
inline |
Constructs a CPUConfig object.
| mask | A CPU mask string, where the i-th character defines the purpose of the i-th core as follows: ' ' means "not used", 'p' means "used for performance analysis", 'c' means "used for the executed workflow", and 'b' means "used for both the executed workflow and performance analysis". |
|
inline |
Returns the number of performance analysis threads that can be spawned based on how many cores are allowed for doing the analysis.
|
inline |