#include "components/system_cpu/cpu_probe_linux.h"
#include <stdint.h>
#include <utility>
#include <vector>
#include "base/check_op.h"
#include "base/functional/callback.h"
#include "base/memory/ptr_util.h"
#include "base/memory/scoped_refptr.h"
#include "base/sequence_checker.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "components/system_cpu/core_times.h"
#include "components/system_cpu/cpu_sample.h"
#include "components/system_cpu/procfs_stat_cpu_parser.h"
namespace system_cpu {
class CpuProbeLinux::BlockingTaskRunnerHelper final { … };
CpuProbeLinux::BlockingTaskRunnerHelper::BlockingTaskRunnerHelper(
base::FilePath procfs_stat_path)
: … { … }
CpuProbeLinux::BlockingTaskRunnerHelper::~BlockingTaskRunnerHelper() { … }
std::optional<CpuSample> CpuProbeLinux::BlockingTaskRunnerHelper::Update() { … }
void CpuProbeLinux::BlockingTaskRunnerHelper::InitializeCore(
size_t core_index,
const CoreTimes& initial_core_times) { … }
std::unique_ptr<CpuProbeLinux> CpuProbeLinux::Create() { … }
CpuProbeLinux::CpuProbeLinux(base::FilePath procfs_stat_path) { … }
CpuProbeLinux::~CpuProbeLinux() { … }
void CpuProbeLinux::Update(SampleCallback callback) { … }
base::WeakPtr<CpuProbe> CpuProbeLinux::GetWeakPtr() { … }
}