chromium/components/system_cpu/cpu_probe_linux.cc

// 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.

#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 {

// Helper class that performs the actual I/O. It must run on a
// SequencedTaskRunner that is properly configured for blocking I/O
// operations.
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) {}

// static
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() {}

}  // namespace system_cpu