OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/renderer/memory_benchmarking_extension.h" | 5 #include "content/renderer/memory_benchmarking_extension.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "content/common/memory_benchmark_messages.h" | 8 #include "content/common/memory_benchmark_messages.h" |
9 #include "content/renderer/render_thread_impl.h" | 9 #include "content/renderer/render_thread_impl.h" |
10 | 10 |
11 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 11 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
12 | 12 |
13 #include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h" | 13 #include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h" |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 const char kMemoryBenchmarkingExtensionName[] = "v8/MemoryBenchmarking"; | 17 const char kMemoryBenchmarkingExtensionName[] = "v8/MemoryBenchmarking"; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 namespace content { | 78 namespace content { |
79 | 79 |
80 v8::Extension* MemoryBenchmarkingExtension::Get() { | 80 v8::Extension* MemoryBenchmarkingExtension::Get() { |
81 return new MemoryBenchmarkingWrapper(); | 81 return new MemoryBenchmarkingWrapper(); |
82 } | 82 } |
83 | 83 |
84 } // namespace content | 84 } // namespace content |
85 | 85 |
86 #endif // defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 86 #endif // defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
OLD | NEW |