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 BASE_ALLOCATOR_TYPE_PROFILER_TCMALLOC_H_ 6#define BASE_ALLOCATOR_TYPE_PROFILER_TCMALLOC_H_ 7 8#if defined(TYPE_PROFILING) 9 10#include <cstddef> // for size_t 11#include <typeinfo> // for std::type_info 12 13namespace base { 14namespace type_profiler { 15 16void* NewInterceptForTCMalloc(void* ptr, 17 size_t size, 18 const std::type_info& type); 19 20void* DeleteInterceptForTCMalloc(void* ptr, 21 size_t size, 22 const std::type_info& type); 23 24} // namespace type_profiler 25} // namespace base 26 27#endif // defined(TYPE_PROFILING) 28 29#endif // BASE_ALLOCATOR_TYPE_PROFILER_TCMALLOC_H_ 30