Flutter Engine
The Flutter Engine
|
A class that computes the correct CPU indices for a requested CPU affinity. More...
#include <cpu_affinity.h>
Public Member Functions | |
CPUSpeedTracker (std::vector< CpuIndexAndSpeed > data) | |
bool | IsValid () const |
The class is valid if it has more than one CPU index and a distinct set of efficiency or performance CPUs. More... | |
const std::vector< size_t > & | GetIndices (CpuAffinity affinity) const |
Return the set of CPU indices for the requested CPU affinity. More... | |
A class that computes the correct CPU indices for a requested CPU affinity.
Definition at line 60 of file cpu_affinity.h.
|
explicit |
Definition at line 34 of file cpu_affinity.cc.
const std::vector< size_t > & fml::CPUSpeedTracker::GetIndices | ( | CpuAffinity | affinity | ) | const |
Return the set of CPU indices for the requested CPU affinity.
If the tracker is valid, this will always return a non-empty set.
Definition at line 71 of file cpu_affinity.cc.
bool fml::CPUSpeedTracker::IsValid | ( | ) | const |
The class is valid if it has more than one CPU index and a distinct set of efficiency or performance CPUs.
If all CPUs are the same speed this returns false, and all requests to set affinity are ignored.
Definition at line 67 of file cpu_affinity.cc.