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

Side by Side Diff: content/public/common/content_switches.cc

Issue 1612663002: Use a valid /prefetch argument when launching a process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bit
Patch Set: address comments from gab #13 Created 4 years, 10 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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "content/public/common/content_switches.h" 6 #include "content/public/common/content_switches.h"
7 7
8 namespace switches { 8 namespace switches {
9 9
10 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to 10 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 #endif 959 #endif
960 960
961 #if defined(OS_MACOSX) && !defined(OS_IOS) 961 #if defined(OS_MACOSX) && !defined(OS_IOS)
962 // Disables support for Core Animation plugins. This is triggered when 962 // Disables support for Core Animation plugins. This is triggered when
963 // accelerated compositing is disabled. See http://crbug.com/122430. 963 // accelerated compositing is disabled. See http://crbug.com/122430.
964 const char kDisableCoreAnimationPlugins[] = 964 const char kDisableCoreAnimationPlugins[] =
965 "disable-core-animation-plugins"; 965 "disable-core-animation-plugins";
966 #endif 966 #endif
967 967
968 #if defined(OS_WIN) 968 #if defined(OS_WIN)
969 // /prefetch:# arguments to use when launching various process types. It has
970 // been observed that when file reads are consistent for 3 process launches with
971 // the same /prefetch:# argument, the Windows prefetcher starts issuing reads in
972 // batch at process launch. Because reads depend on the process type, the
973 // prefetcher wouldn't be able to observe consistent reads if no /prefetch:#
974 // arguments were used. Note that the browser process has no /prefetch:#
975 // argument; as such all other processes must have one in order to avoid
976 // polluting its profile. Note: # must always be in [1, 8]; otherwise it is
977 // ignored by the// Windows prefetcher.
gab 2016/01/29 19:39:28 rm "//" mid sentence.
fdoray 2016/02/01 13:28:26 Done.
978 const char kPrefetchArgumentRenderer[] = "/prefetch:1";
979 const char kPrefetchArgumentGpu[] = "/prefetch:2";
980 const char kPrefetchArgumentPpapi[] = "/prefetch:3";
981 const char kPrefetchArgumentPpapiBroker[] = "/prefetch:4";
982
gab 2016/01/29 19:39:28 I'd remove this empty line to make it even clearer
fdoray 2016/02/01 13:28:26 Done.
983 // /prefetch:5 is unused to this date and can be claimed by a new process type.
984 // /prefetch:6 and /prefetch:7 are reserved for content embedders and are not to
985 // be used by content itself.
986
987 // /prefetch:# argument shared by all process types that don't have their own.
988 // It is likely that the prefetcher won't work for these process types as it
989 // won't be able to observe consistent file reads across launches. However,
990 // having a valid prefetch argument for these process types is required to
991 // prevent them from interfering with the prefetch profile of the browser
992 // process.
993 const char kPrefetchArgumentOther[] = "/prefetch:8";
994
969 // Device scale factor passed to certain processes like renderers, etc. 995 // Device scale factor passed to certain processes like renderers, etc.
970 const char kDeviceScaleFactor[] = "device-scale-factor"; 996 const char kDeviceScaleFactor[] = "device-scale-factor";
971 997
972 // Disable the Legacy Window which corresponds to the size of the WebContents. 998 // Disable the Legacy Window which corresponds to the size of the WebContents.
973 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; 999 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
974 1000
975 // Disables the Win32K process mitigation policy for renderer processes. 1001 // Disables the Win32K process mitigation policy for renderer processes.
976 const char kDisableWin32kRendererLockDown[] = 1002 const char kDisableWin32kRendererLockDown[] =
977 "disable-win32k-renderer-lockdown"; 1003 "disable-win32k-renderer-lockdown";
978 1004
(...skipping 17 matching lines...) Expand all
996 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; 1022 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb";
997 1023
998 // Enables the exporting of the tracing events to ETW. This is only supported on 1024 // Enables the exporting of the tracing events to ETW. This is only supported on
999 // Windows Vista and later. 1025 // Windows Vista and later.
1000 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; 1026 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw";
1001 #endif 1027 #endif
1002 1028
1003 // Don't dump stuff here, follow the same order as the header. 1029 // Don't dump stuff here, follow the same order as the header.
1004 1030
1005 } // namespace switches 1031 } // namespace switches
OLDNEW
« chrome/common/chrome_switches.cc ('K') | « content/public/common/content_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698