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

Unified Diff: base/trace_event/malloc_dump_provider.cc

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
« no previous file with comments | « base/trace_event/heap_profiler_heap_dump_writer_unittest.cc ('k') | base/trace_event/process_memory_dump.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/malloc_dump_provider.cc
diff --git a/base/trace_event/malloc_dump_provider.cc b/base/trace_event/malloc_dump_provider.cc
index 7f2706092ee6f7aafc8283ca22e67bad13022c3c..3a4017251abf94a6d5421e1c0a90dc715c14bf14 100644
--- a/base/trace_event/malloc_dump_provider.cc
+++ b/base/trace_event/malloc_dump_provider.cc
@@ -6,6 +6,8 @@
#include <stddef.h>
+#include <unordered_map>
+
#include "base/allocator/allocator_extension.h"
#include "base/allocator/allocator_shim.h"
#include "base/allocator/features.h"
@@ -296,7 +298,7 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args,
// profiler does not see unabalanced malloc/free calls from these containers.
{
TraceEventMemoryOverhead overhead;
- hash_map<AllocationContext, AllocationMetrics> metrics_by_context;
+ std::unordered_map<AllocationContext, AllocationMetrics> metrics_by_context;
{
AutoLock lock(allocation_register_lock_);
if (allocation_register_) {
« no previous file with comments | « base/trace_event/heap_profiler_heap_dump_writer_unittest.cc ('k') | base/trace_event/process_memory_dump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698