Flutter Engine
 
Loading...
Searching...
No Matches
cpu_affinity.h File Reference
#include <cstdint>
#include <optional>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  fml::CpuIndexAndSpeed
 
class  fml::CPUSpeedTracker
 A class that computes the correct CPU indices for a requested CPU affinity. More...
 

Namespaces

namespace  fml
 

Enumerations

enum class  fml::CpuAffinity {
  fml::kPerformance ,
  fml::kEfficiency ,
  fml::kNotPerformance ,
  fml::kNotEfficiency
}
 

Functions

std::optional< size_t > fml::EfficiencyCoreCount ()
 Request count of efficiency cores.
 
bool fml::RequestAffinity (CpuAffinity affinity)
 Request the given affinity for the current thread.
 
std::optional< int64_t > fml::ReadIntFromFile (const std::string &path)