List of Chromium Command Line Switches

2024-04-01 05:08

本文主要是介绍List of Chromium Command Line Switches,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

详情请转到原文:https://peter.sh/experiments/chromium-command-line-switches/

There are lots of command lines which can be used with the Google Chrome browser. Some change behavior of features, others are for debugging or experimenting. This page lists the available switches including their conditions and descriptions. Last automated update occurred on 2019-08-12.

ConditionExplanation
--/prefetch:1[1] ⊗/prefetch:# arguments to use when launching various process types. It has been observed that when file reads are consistent for 3 process launches with the same /prefetch:# argument, the Windows prefetcher starts issuing reads in batch at process launch. Because reads depend on the process type, the prefetcher wouldn't be able to observe consistent reads if no /prefetch:# arguments were used. Note that the browser process has no /prefetch:# argument; as such all other processes must have one in order to avoid polluting its profile. Note: # must always be in [1, 8]; otherwise it is ignored by the Windows prefetcher. ↪
--/prefetch:2[1] ⊗No description ↪
--/prefetch:3[1] ⊗No description ↪
--/prefetch:4[1] ⊗No description ↪
--/prefetch:5[1] ⊗/prefetch:# arguments for the browser process launched in background mode and for the watcher process. Use profiles 5, 6 and 7 as documented on kPrefetchArgument* in content_switches.cc. ↪
--/prefetch:6[1] ⊗No description ↪
--/prefetch:8[1] ⊗Prefetch arguments are used by the Windows prefetcher to disambiguate different execution modes (i.e. process types) of the same executable image so that different types of processes don't trample each others' prefetch behavior. Legal values are integers in the range [1, 8]. We reserve 8 to mean "whatever", and this will ultimately lead to processes with /prefetch:8 having inconsistent behavior thus disabling prefetch in practice. TODO(rockot): Make it possible for embedders to override this argument on a per-service basis. ↪
--10000 ⊗No description ↪
--100000 ⊗No description ↪
--1000000 ⊗No description ↪
--3d-display-mode[1] ⊗No description ↪
--50000 ⊗No description ↪
--500000 ⊗No description ↪
--5000000 ⊗No description ↪
--? ⊗No description ↪
--accept-resource-provider ⊗Flag indicating that a resource provider must be set up to provide cast receiver with resources. Apps cannot start until provided resources. This flag implies --alsa-check-close-timeout=0. ↪
--account-consistency[2] ⊗Command line flag for enabling account consistency. Default mode is disabled. Mirror is a legacy mode in which Google accounts are always addded to Chrome, and Chrome then adds them to the Google authentication cookies. Dice is a new experiment in which Chrome is aware of the accounts in the Google authentication cookies. ↪
--adaboost ⊗No description ↪
--add-gpu-appcontainer-caps[1] ⊗Add additional capabilities to the AppContainer sandbox on the GPU process. ↪
--add-xr-appcontainer-caps[1] ⊗Add additional capabilities to the AppContainer sandbox used for XR compositing. ↪
--agc-startup-min-volume ⊗Override the default minimum starting volume of the Automatic Gain Control algorithm in WebRTC used with audio tracks from getUserMedia. The valid range is 12-255. Values outside that range will be clamped to the lowest or highest valid value inside WebRTC. TODO(tommi): Remove this switch when crbug.com/555577 is fixed. ↪
--aggressive ⊗No description ↪
--aggressive-cache-discard ⊗No description ↪
--aggressive-tab-discard ⊗No description ↪
--all ⊗No description ↪
--all-renderers ⊗No description ↪
--allarticles ⊗No description ↪
--allow-cross-origin-auth-prompt ⊗Allows third-party content included on a page to prompt for a HTTP basic auth username/password pair. ↪
--allow-external-pages ⊗Allow access to external pages during web tests. ↪
--allow-failed-policy-fetch-for-test ⊗If this flag is passed, failed policy fetches will not cause profile initialization to fail. This is useful for tests because it means that tests don't have to mock out the policy infrastructure. ↪
  

How to use a command line switch?

The Chromium Team has made a page on which they briefly explain how to use these switches.

Conditions

These are rather technical. While most are pretty self-explanatory, keep in mind that any condition means that a switch isn't always available.

  1. The constant OS_WIN must be defined.
  2. The constant !BUILDFLAG(ENABLE_MIRROR) must not be defined.
  3. The constant BUILDFLAG(ENABLE_PLUGINS) must be defined.
  4. The constant !BUILDFLAG(IS_OFFICIAL_CHROME_CLEANER_BUILD) must not be defined.
  5. The constants OS_FREEBSD, OS_LINUX and OS_SOLARIS must be defined.
  6. The constant OS_CHROMEOS must be defined.
  7. The constant OS_MACOSX must be defined.
  8. The constant OS_ANDROID must be defined.
  9. The constants OS_CHROMEOS and OS_MACOSX must not be defined, and the constant OS_POSIX must be defined.
  10. The constant OFFICIAL_BUILD must not be defined, and the constant BUILDFLAG(ENABLE_PRINT_PREVIEW) must be defined.
  11. The constant OS_IOS must not be defined, and the constant OS_MACOSX must be defined.
  12. The constants USE_OZONE and USE_X11 must be defined.
  13. The constant OS_CHROMEOS must not be defined, and the constant OS_LINUX must be defined.
  14. The constant OS_CHROMEOS must not be defined.
  15. The constant OS_POSIX must be defined.
  16. The constants OS_ANDROID and OS_CHROMEOS must not be defined, and the constant \ must be defined.
  17. The constants OS_LINUX, OS_MACOSX and OS_WIN must be defined.
  18. The constant OS_LINUX must be defined.
  19. The constant ENABLE_IPC_FUZZER must be defined.
  20. The constant USE_CRAS must be defined.
  21. The constants OS_ANDROID and OS_CHROMEOS must not be defined.

Based on top-of-tree Chromium code, updated daily and open source. RSS Feed?
Append ?date=YYYY-MM-DD to the URL to get a snapshot of the supported switches at a certain date.

这篇关于List of Chromium Command Line Switches的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/866274

相关文章

C# List.Sort四种重载总结

《C#List.Sort四种重载总结》本文详细分析了C#中List.Sort()方法的四种重载形式及其实现原理,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友... 目录1. Sort方法的四种重载2. 具体使用- List.Sort();- IComparable

SpringBoot分段处理List集合多线程批量插入数据方式

《SpringBoot分段处理List集合多线程批量插入数据方式》文章介绍如何处理大数据量List批量插入数据库的优化方案:通过拆分List并分配独立线程处理,结合Spring线程池与异步方法提升效率... 目录项目场景解决方案1.实体类2.Mapper3.spring容器注入线程池bejsan对象4.创建

Java List 使用举例(从入门到精通)

《JavaList使用举例(从入门到精通)》本文系统讲解JavaList,涵盖基础概念、核心特性、常用实现(如ArrayList、LinkedList)及性能对比,介绍创建、操作、遍历方法,结合实... 目录一、List 基础概念1.1 什么是 List?1.2 List 的核心特性1.3 List 家族成

C# 比较两个list 之间元素差异的常用方法

《C#比较两个list之间元素差异的常用方法》:本文主要介绍C#比较两个list之间元素差异,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧... 目录1. 使用Except方法2. 使用Except的逆操作3. 使用LINQ的Join,GroupJoin

python3如何找到字典的下标index、获取list中指定元素的位置索引

《python3如何找到字典的下标index、获取list中指定元素的位置索引》:本文主要介绍python3如何找到字典的下标index、获取list中指定元素的位置索引问题,具有很好的参考价值,... 目录enumerate()找到字典的下标 index获取list中指定元素的位置索引总结enumerat

C#之List集合去重复对象的实现方法

《C#之List集合去重复对象的实现方法》:本文主要介绍C#之List集合去重复对象的实现方法,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录C# List集合去重复对象方法1、测试数据2、测试数据3、知识点补充总结C# List集合去重复对象方法1、测试数据

Python中合并列表(list)的六种方法小结

《Python中合并列表(list)的六种方法小结》本文主要介绍了Python中合并列表(list)的六种方法小结,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋... 目录一、直接用 + 合并列表二、用 extend() js方法三、用 zip() 函数交叉合并四、用

Java List排序实例代码详解

《JavaList排序实例代码详解》:本文主要介绍JavaList排序的相关资料,Java排序方法包括自然排序、自定义排序、Lambda简化及多条件排序,实现灵活且代码简洁,文中通过代码介绍的... 目录一、自然排序二、自定义排序规则三、使用 Lambda 表达式简化 Comparator四、多条件排序五、

Java使用Stream流的Lambda语法进行List转Map的操作方式

《Java使用Stream流的Lambda语法进行List转Map的操作方式》:本文主要介绍Java使用Stream流的Lambda语法进行List转Map的操作方式,具有很好的参考价值,希望对大... 目录背景Stream流的Lambda语法应用实例1、定义要操作的UserDto2、ListChina编程转成M

Java中List的contains()方法的使用小结

《Java中List的contains()方法的使用小结》List的contains()方法用于检查列表中是否包含指定的元素,借助equals()方法进行判断,下面就来介绍Java中List的c... 目录详细展开1. 方法签名2. 工作原理3. 使用示例4. 注意事项总结结论:List 的 contain