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.
5 #ifndef BASE_ALLOCATOR_TYPE_PROFILER_TCMALLOC_H_
6 #define BASE_ALLOCATOR_TYPE_PROFILER_TCMALLOC_H_
8 #if defined(TYPE_PROFILING)
10 #include <cstddef> // for size_t
11 #include <typeinfo> // for std::type_info
14 namespace type_profiler {
16 void* NewInterceptForTCMalloc(void* ptr,
18 const std::type_info& type);
20 void* DeleteInterceptForTCMalloc(void* ptr,
22 const std::type_info& type);
24 } // namespace type_profiler
27 #endif // defined(TYPE_PROFILING)
29 #endif // BASE_ALLOCATOR_TYPE_PROFILER_TCMALLOC_H_