| Index: base/allocator/type_profiler_tcmalloc.h
|
| diff --git a/base/allocator/type_profiler_tcmalloc.h b/base/allocator/type_profiler_tcmalloc.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ac55995c82423e339251e2e31e7a346d85470c85
|
| --- /dev/null
|
| +++ b/base/allocator/type_profiler_tcmalloc.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 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_ALLOCATOR_TYPE_PROFILER_TCMALLOC_H_
|
| +#define BASE_ALLOCATOR_TYPE_PROFILER_TCMALLOC_H_
|
| +
|
| +#if defined(TYPE_PROFILING)
|
| +
|
| +#include <cstddef> // for size_t
|
| +#include <typeinfo> // for std::type_info
|
| +
|
| +namespace base {
|
| +namespace type_profiler {
|
| +
|
| +void* NewInterceptForTCMalloc(void* ptr,
|
| + size_t size,
|
| + const std::type_info& type);
|
| +
|
| +void* DeleteInterceptForTCMalloc(void* ptr,
|
| + size_t size,
|
| + const std::type_info& type);
|
| +
|
| +} // namespace type_profiler
|
| +} // namespace base
|
| +
|
| +#endif // defined(TYPE_PROFILING)
|
| +
|
| +#endif // BASE_ALLOCATOR_TYPE_PROFILER_TCMALLOC_H_
|
|
|