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_CONTROL_H_
6 #define BASE_ALLOCATOR_TYPE_PROFILER_CONTROL_H_
8 #include "base/gtest_prod_util.h"
11 namespace type_profiler {
16 static bool IsProfiling();
19 FRIEND_TEST_ALL_PREFIXES(TypeProfilerTest,
20 TestProfileNewWithoutProfiledDelete);
22 // It must be used only from allowed unit tests. The following is only
23 // allowed for use in unit tests. Profiling should never be restarted in
25 static void Restart();
28 } // namespace type_profiler
31 #endif // BASE_ALLOCATOR_TYPE_PROFILER_CONTROL_H_