1 // Copyright 2012 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef TYPE_PROFILER_MAP_H_ 6 #define TYPE_PROFILER_MAP_H_ 7 8 #if defined(TYPE_PROFILING) 9 10 #include <typeinfo> 11 12 // PERFTOOLS_DLL_DECL is unnecessary, as it is Windows specific. 13 14 void InsertType(void* address, size_t size, const std::type_info& type); 15 void EraseType(void* address); 16 const std::type_info* LookupType(const void* address); 17 18 #endif // defined(TYPE_PROFILING) 19 20 #endif // TYPE_PROFILER_MAP_H_ 21