Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: base/allocator/type_profiler.h

Issue 1331973002: Remove clang type profiler and deep memory profiler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/allocator/allocator.gyp ('k') | base/allocator/type_profiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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_H_
6 #define BASE_ALLOCATOR_TYPE_PROFILER_H_
7
8 #if defined(TYPE_PROFILING)
9
10 #include <stddef.h> // for size_t
11 #include <typeinfo> // for std::typeinfo
12
13 namespace base {
14 namespace type_profiler {
15
16 typedef void* InterceptFunction(void*, size_t, const std::type_info&);
17
18 class InterceptFunctions {
19 public:
20 // It must be called only once in a process while it is in single-thread.
21 // For now, ContentMainRunnerImpl::Initialize is the only supposed caller
22 // of this function except for single-threaded unit tests.
23 static void SetFunctions(InterceptFunction* new_intercept,
24 InterceptFunction* delete_intercept);
25
26 private:
27 friend class TypeProfilerTest;
28
29 // These functions are not thread safe.
30 // They must be used only from single-threaded unit tests.
31 static void ResetFunctions();
32 static bool IsAvailable();
33 };
34
35 } // namespace type_profiler
36 } // namespace base
37
38 #endif // defined(TYPE_PROFILING)
39
40 #endif // BASE_ALLOCATOR_TYPE_PROFILER_H_
OLDNEW
« no previous file with comments | « base/allocator/allocator.gyp ('k') | base/allocator/type_profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698