chromium/components/system_cpu/procfs_stat_cpu_parser.h

// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_SYSTEM_CPU_PROCFS_STAT_CPU_PARSER_H_
#define COMPONENTS_SYSTEM_CPU_PROCFS_STAT_CPU_PARSER_H_

#include <stdint.h>

#include <string_view>
#include <vector>

#include "base/files/file_path.h"
#include "base/sequence_checker.h"
#include "base/thread_annotations.h"
#include "components/system_cpu/core_times.h"

namespace system_cpu {

// Parses CPU time usage stats from procfs (/proc/stat).
//
// This class is not thread-safe. Each instance must be used on the same
// sequence, which must allow blocking I/O. The constructor may be used on a
// different sequence.
class ProcfsStatCpuParser {};

}  // namespace system_cpu

#endif  // COMPONENTS_SYSTEM_CPU_PROCFS_STAT_CPU_PARSER_H_