spicetools/util/cpuutils.h

19 lines
439 B
C
Raw Permalink Normal View History

2024-08-28 15:10:34 +00:00
#pragma once
#include <vector>
#include <string>
#include <cstdint>
namespace cpuutils {
enum class CpuEfficiencyClass {
PreferECores,
PreferPCores
};
std::vector<float> get_load();
void print_cpu_features();
void set_processor_priority(std::string priority);
void set_processor_affinity(uint64_t affinity, bool is_user_override);
void set_processor_affinity(CpuEfficiencyClass eff_class);
}