// Copyright 2021 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/services/heap_profiling/public/cpp/merge_samples.h" #include <algorithm> #include <cmath> namespace heap_profiling { namespace { Sample; } bool SampleComparator::operator()(const Sample& lhs, const Sample& rhs) const { … } // Merges samples that have identical stack traces, excluding total and size. SampleMap MergeSamples(const std::vector<Sample>& samples) { … } } // namespace heap_profiling