#include "components/memory_pressure/unnecessary_discard_monitor.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
namespace memory_pressure {
namespace {
constexpr size_t kUnnecessaryDiscardsExclusiveMax = …;
}
UnnecessaryDiscardMonitor::UnnecessaryDiscardMonitor() = default;
UnnecessaryDiscardMonitor::~UnnecessaryDiscardMonitor() = default;
void UnnecessaryDiscardMonitor::OnReclaimTargetBegin(
ReclaimTarget reclaim_target) { … }
void UnnecessaryDiscardMonitor::OnReclaimTargetEnd() { … }
void UnnecessaryDiscardMonitor::OnDiscard(
int64_t memory_freed_kb,
base::TimeTicks discard_complete_time) { … }
void UnnecessaryDiscardMonitor::ReportUnnecessaryDiscards(size_t count) { … }
}