Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 2948283002: Profiling process topology (Closed)
Patch Set: Improvements Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "ppapi/features/features.h" 10 #include "ppapi/features/features.h"
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 // print preview, instead of the most recently used destination. 1127 // print preview, instead of the most recently used destination.
1128 const char kUseSystemDefaultPrinter[] = "use-system-default-printer"; 1128 const char kUseSystemDefaultPrinter[] = "use-system-default-printer";
1129 #endif 1129 #endif
1130 1130
1131 #if BUILDFLAG(ENABLE_OOP_HEAP_PROFILING) 1131 #if BUILDFLAG(ENABLE_OOP_HEAP_PROFILING)
1132 // Enables the out-of-process memory logging. 1132 // Enables the out-of-process memory logging.
1133 const char kMemlog[] = "memlog"; 1133 const char kMemlog[] = "memlog";
1134 1134
1135 // Communicates the pipe name for out-of-process memory logging. 1135 // Communicates the pipe name for out-of-process memory logging.
1136 const char kMemlogPipe[] = "memlog-pipe"; 1136 const char kMemlogPipe[] = "memlog-pipe";
1137
1138 // Value passed to kProcessType switch that indicates the profiling process.
1139 const char kProfiling[] = "profiling";
1137 #endif 1140 #endif
1138 1141
1139 bool ExtensionsDisabled(const base::CommandLine& command_line) { 1142 bool ExtensionsDisabled(const base::CommandLine& command_line) {
1140 return command_line.HasSwitch(switches::kDisableExtensions) || 1143 return command_line.HasSwitch(switches::kDisableExtensions) ||
1141 command_line.HasSwitch(switches::kDisableExtensionsExcept); 1144 command_line.HasSwitch(switches::kDisableExtensionsExcept);
1142 } 1145 }
1143 1146
1144 bool ExtensionsDisabled() { 1147 bool ExtensionsDisabled() {
1145 return ExtensionsDisabled(*base::CommandLine::ForCurrentProcess()); 1148 return ExtensionsDisabled(*base::CommandLine::ForCurrentProcess());
1146 } 1149 }
(...skipping 27 matching lines...) Expand all
1174 1177
1175 // ----------------------------------------------------------------------------- 1178 // -----------------------------------------------------------------------------
1176 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. 1179 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE.
1177 // 1180 //
1178 // You were going to just dump your switches here, weren't you? Instead, please 1181 // You were going to just dump your switches here, weren't you? Instead, please
1179 // put them in alphabetical order above, or in order inside the appropriate 1182 // put them in alphabetical order above, or in order inside the appropriate
1180 // ifdef at the bottom. The order should match the header. 1183 // ifdef at the bottom. The order should match the header.
1181 // ----------------------------------------------------------------------------- 1184 // -----------------------------------------------------------------------------
1182 1185
1183 } // namespace switches 1186 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698