chromium/components/memory_pressure/unnecessary_discard_monitor.cc

// Copyright 2024 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/memory_pressure/unnecessary_discard_monitor.h"

#include "base/logging.h"
#include "base/metrics/histogram_functions.h"

namespace memory_pressure {
namespace {

// Don't expect any unnecessary discard values above 10.
constexpr size_t kUnnecessaryDiscardsExclusiveMax =;

}  // namespace

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) {}

}  // namespace memory_pressure