#include "chrome/browser/metrics/tab_footprint_aggregator.h"
#include <limits>
#include <numeric>
#include <utility>
#include "base/containers/contains.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "services/metrics/public/cpp/ukm_recorder.h"
PageId;
Memory_TabFootprint;
namespace {
static const uint64_t kInvalidAmount = …;
class TabStats { … };
}
TabFootprintAggregator::TabFootprintAggregator() = default;
TabFootprintAggregator::~TabFootprintAggregator() = default;
void TabFootprintAggregator::AssociateMainFrame(ukm::SourceId sid,
base::ProcessId pid,
PageId page_id,
uint64_t pmf_kb) { … }
void TabFootprintAggregator::AssociateSubFrame(ukm::SourceId sid,
base::ProcessId pid,
PageId page_id,
uint64_t pmf_kb) { … }
void TabFootprintAggregator::AssociateFrame(ukm::SourceId sid,
base::ProcessId pid,
PageId page_id,
uint64_t pmf_kb) { … }
void TabFootprintAggregator::RecordPmfs(ukm::UkmRecorder* ukm_recorder) const { … }