#include "components/system_cpu/procfs_stat_cpu_parser.h"
#include <stdint.h>
#include <limits>
#include <string_view>
#include <utility>
#include <vector>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/sequence_checker.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/system/sys_info.h"
namespace system_cpu {
constexpr base::FilePath::CharType ProcfsStatCpuParser::kProcfsStatPath[];
ProcfsStatCpuParser::ProcfsStatCpuParser(base::FilePath stat_path)
: … { … }
ProcfsStatCpuParser::~ProcfsStatCpuParser() { … }
bool ProcfsStatCpuParser::Update() { … }
int ProcfsStatCpuParser::CoreIdFromLine(std::string_view stat_line) { … }
void ProcfsStatCpuParser::UpdateCore(std::string_view core_line,
CoreTimes& core_times) { … }
}