| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <objidl.h> | 9 #include <objidl.h> |
| 10 #include <mlang.h> | 10 #include <mlang.h> |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 #endif | 93 #endif |
| 94 | 94 |
| 95 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 95 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 96 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { | 96 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { |
| 97 webkit_glue::SetJavaScriptFlags( | 97 webkit_glue::SetJavaScriptFlags( |
| 98 command_line.GetSwitchValue(switches::kJavaScriptFlags)); | 98 command_line.GetSwitchValue(switches::kJavaScriptFlags)); |
| 99 } | 99 } |
| 100 | 100 |
| 101 if (!command_line.HasSwitch(switches::kDisableOutOfProcessDevTools)) { | 101 if (!command_line.HasSwitch(switches::kDisableOutOfProcessDevTools)) { |
| 102 // Out of process dev tools rely upon auto break behavior. | 102 // Out of process dev tools rely upon auto break behavior. |
| 103 webkit_glue::SetJavaScriptFlags(L"--debugger-auto-break"); | 103 webkit_glue::SetJavaScriptFlags(L"--debugger-auto-break" |
| 104 // Enable lazy in-memory profiling. |
| 105 L" --prof --prof-lazy --logfile=*"); |
| 104 } | 106 } |
| 105 | 107 |
| 106 if (command_line.HasSwitch(switches::kEnableWatchdog)) { | 108 if (command_line.HasSwitch(switches::kEnableWatchdog)) { |
| 107 // TODO(JAR): Need to implement renderer IO msgloop watchdog. | 109 // TODO(JAR): Need to implement renderer IO msgloop watchdog. |
| 108 } | 110 } |
| 109 | 111 |
| 110 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) { | 112 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) { |
| 111 StatisticsRecorder::set_dump_on_exit(true); | 113 StatisticsRecorder::set_dump_on_exit(true); |
| 112 } | 114 } |
| 113 | 115 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 } | 261 } |
| 260 | 262 |
| 261 void RenderProcess::ClearTransportDIBCache() { | 263 void RenderProcess::ClearTransportDIBCache() { |
| 262 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 264 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
| 263 if (shared_mem_cache_[i]) { | 265 if (shared_mem_cache_[i]) { |
| 264 FreeTransportDIB(shared_mem_cache_[i]); | 266 FreeTransportDIB(shared_mem_cache_[i]); |
| 265 shared_mem_cache_[i] = NULL; | 267 shared_mem_cache_[i] = NULL; |
| 266 } | 268 } |
| 267 } | 269 } |
| 268 } | 270 } |
| OLD | NEW |