// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_SERVICES_HEAP_PROFILING_ALLOCATION_H_ #define COMPONENTS_SERVICES_HEAP_PROFILING_ALLOCATION_H_ #include <unordered_map> #include <vector> #include "components/services/heap_profiling/public/mojom/heap_profiling_client.mojom.h" namespace heap_profiling { Address; AllocatorType; // The struct is a descriptor of an allocation site. It is used as a unique // key in the AllocationMap. struct AllocationSite { … }; inline bool operator==(const AllocationSite& a, const AllocationSite& b) { … } // Data associated with an allocation site in the AllocationMap. struct AllocationMetrics { … }; AllocationMap; } // namespace heap_profiling #endif // COMPONENTS_SERVICES_HEAP_PROFILING_ALLOCATION_H_