OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "base/debug/profiler.h" | |
6 | |
7 #include <string> | 5 #include <string> |
8 | 6 |
9 #include "base/process_util.h" | |
10 #include "base/string_util.h" | |
11 | |
12 #if defined(ENABLE_PROFILING) && !defined(NO_TCMALLOC) | 7 #if defined(ENABLE_PROFILING) && !defined(NO_TCMALLOC) |
13 #include "third_party/tcmalloc/chromium/src/google/profiler.h" | 8 #include "third_party/tcmalloc/chromium/src/google/profiler.h" |
14 #endif | 9 #endif |
15 | 10 |
16 namespace base { | 11 namespace base { |
17 namespace debug { | 12 namespace debug { |
18 | 13 |
19 #if defined(ENABLE_PROFILING) && !defined(NO_TCMALLOC) | 14 #if defined(ENABLE_PROFILING) && !defined(NO_TCMALLOC) |
20 | 15 |
21 static int profile_count = 0; | 16 static int profile_count = 0; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 51 |
57 bool BeingProfiled() { | 52 bool BeingProfiled() { |
58 return false; | 53 return false; |
59 } | 54 } |
60 | 55 |
61 #endif | 56 #endif |
62 | 57 |
63 } // namespace debug | 58 } // namespace debug |
64 } // namespace base | 59 } // namespace base |
65 | 60 |
OLD | NEW |