#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 {
const char kCPUPressureHistogramName[] = …;
const char kIOPressureHistogramName[] = …;
const char kMemoryPressureHistogramName[] = …;
const base::FilePath::CharType kCPUPressureFilePath[] = …);
const base::FilePath::CharType kIOPressureFilePath[] = …);
const base::FilePath::CharType kMemoryPressureFilePath[] = …);
constexpr base::TimeDelta kDelayBetweenSamples = …;
constexpr base::TimeDelta kDelayBetweenTracingSamples = …;
const char kTraceCategoryForPressureEvents[] = …;
}
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() { … }