Index: third_party/tcmalloc/chromium/src/gperftools/allocated_type_map.h |
diff --git a/third_party/tcmalloc/chromium/src/gperftools/allocated_type_map.h b/third_party/tcmalloc/chromium/src/gperftools/allocated_type_map.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c587f4d89296fb872cbc646de92785c01fe79b72 |
--- /dev/null |
+++ b/third_party/tcmalloc/chromium/src/gperftools/allocated_type_map.h |
@@ -0,0 +1,35 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef BASE_ALLOCATED_TYPE_MAP_H_ |
+#define BASE_ALLOCATED_TYPE_MAP_H_ |
+ |
+#include <typeinfo> |
+ |
+/* Annoying stuff for windows; makes sure clients can import these functions */ |
+#ifndef PERFTOOLS_DLL_DECL |
+# ifdef _WIN32 |
+# define PERFTOOLS_DLL_DECL __declspec(dllimport) |
+# else |
+# define PERFTOOLS_DLL_DECL |
+# endif |
+#endif |
+ |
+/* All this code should be usable from within C apps. */ |
+#ifdef __cplusplus |
+extern "C" { |
+#endif |
+ |
+PERFTOOLS_DLL_DECL void InsertAllocatedType(void* address, |
+ const std::type_info& type); |
+ |
+PERFTOOLS_DLL_DECL void EraseAllocatedType(void* address); |
+ |
+PERFTOOLS_DLL_DECL const std::type_info* LookupAllocatedType(void* address); |
+ |
+#ifdef __cplusplus |
+} // extern "C" |
+#endif |
+ |
+#endif /* BASE_ALLOCATED_TYPE_MAP_H_ */ |