| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_DEBUG_PROFILER_H_ | 5 #ifndef BASE_DEBUG_PROFILER_H_ |
| 6 #define BASE_DEBUG_PROFILER_H_ | 6 #define BASE_DEBUG_PROFILER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/base_export.h" | 12 #include "base/base_export.h" |
| 11 #include "base/basictypes.h" | |
| 12 | 13 |
| 13 // The Profiler functions allow usage of the underlying sampling based | 14 // The Profiler functions allow usage of the underlying sampling based |
| 14 // profiler. If the application has not been built with the necessary | 15 // profiler. If the application has not been built with the necessary |
| 15 // flags (-DENABLE_PROFILING and not -DNO_TCMALLOC) then these functions | 16 // flags (-DENABLE_PROFILING and not -DNO_TCMALLOC) then these functions |
| 16 // are noops. | 17 // are noops. |
| 17 namespace base { | 18 namespace base { |
| 18 namespace debug { | 19 namespace debug { |
| 19 | 20 |
| 20 // Start profiling with the supplied name. | 21 // Start profiling with the supplied name. |
| 21 // {pid} will be replaced by the process' pid and {count} will be replaced | 22 // {pid} will be replaced by the process' pid and {count} will be replaced |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // Otherwise returns NULL. | 82 // Otherwise returns NULL. |
| 82 BASE_EXPORT ReturnAddressLocationResolver GetProfilerReturnAddrResolutionFunc(); | 83 BASE_EXPORT ReturnAddressLocationResolver GetProfilerReturnAddrResolutionFunc(); |
| 83 BASE_EXPORT DynamicFunctionEntryHook GetProfilerDynamicFunctionEntryHookFunc(); | 84 BASE_EXPORT DynamicFunctionEntryHook GetProfilerDynamicFunctionEntryHookFunc(); |
| 84 BASE_EXPORT AddDynamicSymbol GetProfilerAddDynamicSymbolFunc(); | 85 BASE_EXPORT AddDynamicSymbol GetProfilerAddDynamicSymbolFunc(); |
| 85 BASE_EXPORT MoveDynamicSymbol GetProfilerMoveDynamicSymbolFunc(); | 86 BASE_EXPORT MoveDynamicSymbol GetProfilerMoveDynamicSymbolFunc(); |
| 86 | 87 |
| 87 } // namespace debug | 88 } // namespace debug |
| 88 } // namespace base | 89 } // namespace base |
| 89 | 90 |
| 90 #endif // BASE_DEBUG_PROFILER_H_ | 91 #endif // BASE_DEBUG_PROFILER_H_ |
| OLD | NEW |