Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2615)

Unified Diff: base/trace_event/heap_profiler_heap_dump_writer.h

Issue 2830093003: Replace uses of hash_map in //base (Closed)
Patch Set: iOS Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/trace_event/heap_profiler_heap_dump_writer.h
diff --git a/base/trace_event/heap_profiler_heap_dump_writer.h b/base/trace_event/heap_profiler_heap_dump_writer.h
index 6e9d29de8782a1258ab70f01b61c106c7eb63661..84639062602fde226ce22db4d9c1dfa308d4fa77 100644
--- a/base/trace_event/heap_profiler_heap_dump_writer.h
+++ b/base/trace_event/heap_profiler_heap_dump_writer.h
@@ -9,9 +9,9 @@
#include <memory>
#include <set>
+#include <unordered_map>
#include "base/base_export.h"
-#include "base/containers/hash_tables.h"
#include "base/macros.h"
#include "base/trace_event/heap_profiler_allocation_context.h"
@@ -28,7 +28,8 @@ class TypeNameDeduplicator;
// trace log, following the format described in https://goo.gl/KY7zVE. The
// number of entries is kept reasonable because long tails are not included.
BASE_EXPORT std::unique_ptr<TracedValue> ExportHeapDump(
- const hash_map<AllocationContext, AllocationMetrics>& metrics_by_context,
+ const std::unordered_map<AllocationContext, AllocationMetrics>&
+ metrics_by_context,
const MemoryDumpSessionState& session_state);
namespace internal {
@@ -77,7 +78,8 @@ class BASE_EXPORT HeapDumpWriter {
// in the "entries" array. The number of entries is kept reasonable because
// long tails are not included. Use |Serialize| to convert to a traced value.
const std::set<Entry>& Summarize(
- const hash_map<AllocationContext, AllocationMetrics>& metrics_by_context);
+ const std::unordered_map<AllocationContext, AllocationMetrics>&
+ metrics_by_context);
private:
// Inserts an |Entry| for |Bucket| into |entries_|. Returns false if the
« no previous file with comments | « base/trace_event/heap_profiler_allocation_context.cc ('k') | base/trace_event/heap_profiler_heap_dump_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698