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

Unified Diff: base/tracked_objects.h

Issue 957573002: Use hash map for tracked_objects::location (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typos in comment Created 5 years, 9 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/location.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/tracked_objects.h
diff --git a/base/tracked_objects.h b/base/tracked_objects.h
index 558f35aaa924f328ecb8bc29ec50d14cb84801a0..29846a0e6bd7b69c859972e6a8febb9643c96876 100644
--- a/base/tracked_objects.h
+++ b/base/tracked_objects.h
@@ -14,6 +14,7 @@
#include "base/base_export.h"
#include "base/basictypes.h"
+#include "base/containers/hash_tables.h"
#include "base/gtest_prod_util.h"
#include "base/lazy_instance.h"
#include "base/location.h"
@@ -364,7 +365,7 @@ class BASE_EXPORT ThreadData {
STATUS_LAST = PROFILING_CHILDREN_ACTIVE
};
- typedef std::map<Location, Births*> BirthMap;
+ typedef base::hash_map<Location, Births*, Location::Hash> BirthMap;
typedef std::map<const Births*, DeathData> DeathMap;
typedef std::pair<const Births*, const Births*> ParentChildPair;
typedef std::set<ParentChildPair> ParentChildSet;
« no previous file with comments | « base/location.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698