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 "build/build_config.h" |
7 #include "content/common/memory_benchmark_messages.h" | 8 #include "content/common/memory_benchmark_messages.h" |
8 #include "content/public/renderer/chrome_object_extensions_utils.h" | 9 #include "content/public/renderer/chrome_object_extensions_utils.h" |
9 #include "content/renderer/render_thread_impl.h" | 10 #include "content/renderer/render_thread_impl.h" |
10 #include "gin/arguments.h" | 11 #include "gin/arguments.h" |
11 #include "gin/handle.h" | 12 #include "gin/handle.h" |
12 #include "gin/object_template_builder.h" | 13 #include "gin/object_template_builder.h" |
13 #include "third_party/WebKit/public/web/WebFrame.h" | 14 #include "third_party/WebKit/public/web/WebFrame.h" |
14 #include "third_party/WebKit/public/web/WebKit.h" | 15 #include "third_party/WebKit/public/web/WebKit.h" |
15 | 16 |
16 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 17 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 if (process_type == "browser") { | 79 if (process_type == "browser") { |
79 content::RenderThreadImpl::current()->Send( | 80 content::RenderThreadImpl::current()->Send( |
80 new MemoryBenchmarkHostMsg_HeapProfilerDump(reason)); | 81 new MemoryBenchmarkHostMsg_HeapProfilerDump(reason)); |
81 } else { | 82 } else { |
82 ::HeapProfilerDump(reason.c_str()); | 83 ::HeapProfilerDump(reason.c_str()); |
83 } | 84 } |
84 #endif | 85 #endif |
85 } | 86 } |
86 | 87 |
87 } // namespace content | 88 } // namespace content |
OLD | NEW |