chromium/chrome/browser/metrics/pressure/pressure_metrics_reporter.cc

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

#include "chrome/browser/metrics/pressure/pressure_metrics_reporter.h"

#include <vector>

#include "base/task/thread_pool.h"
#include "base/trace_event/trace_event.h"

namespace {

// Histograms names for the pressure metrics.
const char kCPUPressureHistogramName[] =;
const char kIOPressureHistogramName[] =;
const char kMemoryPressureHistogramName[] =;

// Paths for the pressure metrics (Pressure Stall Information).
const base::FilePath::CharType kCPUPressureFilePath[] =);
const base::FilePath::CharType kIOPressureFilePath[] =);
const base::FilePath::CharType kMemoryPressureFilePath[] =);

// The time to wait between UMA samples.
constexpr base::TimeDelta kDelayBetweenSamples =;

// The time to wait between trace counters.
constexpr base::TimeDelta kDelayBetweenTracingSamples =;

// Tracing caterogies to emit the memory pressure related trace events.
const char kTraceCategoryForPressureEvents[] =;

}  // anonymous namespace

class PressureMetricsWorker {};

PressureMetricsWorker::PressureMetricsWorker() {}

PressureMetricsWorker::~PressureMetricsWorker() = default;

void PressureMetricsWorker::OnTracingEnabled() {}

void PressureMetricsWorker::OnTracingDisabled() {}

void PressureMetricsWorker::ReadAndEmitCounters() {}

void PressureMetricsWorker::ReadAndEmitUMA() {}

PressureMetricsReporter::PressureMetricsReporter()
    :{}

PressureMetricsReporter::~PressureMetricsReporter() {}

void PressureMetricsReporter::OnTraceLogEnabled() {}

void PressureMetricsReporter::OnTraceLogDisabled() {}