`
alanland
  • 浏览: 635827 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Chrome所有运行参数

阅读更多

 http://alanland.iteye.com/blog/604013

 

常用:

–single-process 单进程运行Google Chrome

–start-maximized 启动Google Chrome就最大化

–disable-java 禁止Java

–no-sandbox 非沙盒模式运行

 

 

全部:(下面的没有进行翻译,仔细看下应该都看得懂. ~ ~)

–disable-hang-monitor

Suppresses hang monitor dialogs in renderer processes.

–disable-metrics

Completely disables UMA metrics system.

–disable-metrics-reporting

Disables only the sending of metrics reports. In contrast to kDisableMetrics, this executes all the code that a normal client would use for reporting, except the report is dropped rather than sent to the server. This is useful for finding issues in the metrics code during UI and performance tests.

–assert-test

Causes the browser process to throw an assertion on startup.

–renderer-assert-test

Causes the renderer process to throw an assertion on launch.

–crash-test

Performs a crash test when the browser is starte.

–renderer-crash-test

Causes the renderer process to crash on launch.

–renderer-startup-dialog

Use this argument when you want to see the child processes as soon as Chrome start.

–plugin-startup-dialog

Causes the plugin process to display a dialog on launch.

–testshell-startup-dialog

Causes the test shell process to display a dialog on launch.

–plugin-launcher

Specifies a command that should be used to launch the plugin process. Useful

for running the plugin process through purify or quantify. Ex:

–plugin-launcher=”path\to\purify /Run=yes.

–plugin-launche.

–channel

The value of this switch tells the child process which

IPC channel the browser expects to use to communicate with it.

–testing-channel

The value of this switch tells the app to listen for and broadcast

testing-related messages on IPC channel with the given ID.

–homepage

The value of this switch specifies which page will be displayed

in newly-opened tabs. We need this for testing purposes so

that the UI tests don’t depend on what comes up for http://google.com.

–start-renderers-manually

When this switch is present, the browser will throw up a dialog box

asking the user to start a renderer process independently rather

than launching the renderer itself. (This is useful for debugging..

–renderer

Causes the process to run as renderer instead of as browser.

–renderer-path

Path to the executable to run for the renderer subproces.

–plugin

Causes the process to run as plugin hos.

–single-process

Runs the renderer and plugins in the same process as the browse.

–process-per-tab

Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own

renderer process. We default to using a renderer process for each

site instance (i.e., group of pages from the same registered domain with

script connections to each other).

–process-per-site

Runs a single process for each site (i.e., group of pages from the same

registered domain) the user visits. We default to using a renderer process

for each site instance (i.e., group of pages from the same registered

domain with script connections to each other).

–in-process-plugins

Runs plugins inside the renderer proces.

–no-sandbox

Runs the renderer outside the sandbox.

–safe-plugins

Runs the plugin processes inside the sandbox.

–trusted-plugins

Excludes these plugins from the plugin sandbox.

This is a comma separated list of plugin dlls name and activex clsid.

–test-sandbox

Runs the security test for the sandbox.

–user-data-dir

Specifies the user data directory, which is where the browser will look

for all of its state.

–app

Specifies that the associated value should be launched in “application” mode.

–upload-file

Specifies the file that should be uploaded to the provided application. This

switch is expected to be used with –app option.

–dom-automation

Specifies if the dom_automation_controller_ needs to be bound in the

renderer. This binding happens on per-frame basis and hence can potentially

be a performance bottleneck. One should only enable it when automating

dom based tests.

–plugin-path

Tells the plugin process the path of the plugin to loa.

–js-flags

Specifies the flags passed to JS engin.

–geoid

The GeoID we should use. This is normally obtained from the operating system

during first run and cached in the preferences afterwards. This is a numeric

value; see http://msdn.microsoft.com/en-us/library/ms776390.aspx .

–lang

The language file that we want to try to open. Of the form

language[-country] where language is the 2 letter code from ISO-639.

–debug-children

Will add kDebugOnStart to every child processes. If a value is passed, it

will be used as a filter to determine if the child process should have the

kDebugOnStart flag passed on or not.

–debug-on-start

Causes the process to start the JIT debugger on itself (mainly used by –debug-children.

–wait-for-debugger-children

Will add kWaitForDebugger to every child processes. If a value is passed, it

will be used as a filter to determine if the child process should have the

kWaitForDebugger flag passed on or not.

–wait-for-debugger

Waits for a debugger for 60 second.

–log-filter-prefix

Will filter log messages to show only the messages that are prefixed

with the specified valu.

–enable-logging

Force logging to be enabled. Logging is disabled by default in release

builds.

–dump-histograms-on-exit

Dump any accumualted histograms to the log when browser terminates (requires

logging to be enabled to really do anything). Used by developers and test

scripts.

–disable-logging

Force logging to be disabled. Logging is enabled by default in debug

builds.

–log-level

Sets the minimum log level. Valid values are from 0 to 3:

INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3.

–remote-shell-port

Enable remote debug / automation shell on the specified por.

–uninstall

Runs un-installation steps that were done by chrome first-run.

–omnibox-popup-count

Number of entries to show in the omnibox popup.

–uninstallomnibox-popup-count

Removes the previous set suggestion coun.

–automation-channel

The value of this switch tells the app to listen for and broadcast

automation-related messages on IPC channel with the given ID.

–restore-last-session

Indicates the last session should be restored on startup. This overrides

the preferences value and is primarily intended for testing.

–record-mode

–playback-mode

Chrome supports a playback and record mode. Record mode saves *everything*

to the cache. Playback mode reads data exclusively from the cache. This

allows us to record a session into the cache and then replay it at will.

–no-events

Don’t record/playback events when using record & playback.

–hide-icons

–show-icons

Make Windows happy by allowing it to show “Enable access to this program”

checkbox in Add/Remove Programs->Set Program Access and Defaults. This

only shows an error box because the only way to hide Chrome is by

uninstalling it.

–make-default-browser

Make Chrome default browse.

–proxy-server

Use a specified proxy server, overrides system settings. This switch only

affects HTTP and HTTPS requests.

–dns-log-details

–dns-prefetch-disable

Chrome will support prefetching of DNS information. Until this becomes

the default, we’ll provide a command line switch.

–debug-print

Enables support to debug printing subsystem.

–allow-all-activex

Allow initialization of all activex controls. This is only to help website

developers test their controls to see if they are compatible in Chrome.

Note there’s a duplicate value in activex_shared.cc (to avoid

dependency on chrome module). Please change both locations at the same time.

–disable-dev-tools

Browser flag to disable the web inspector for all renderers.

–always-enable-dev-tools

Enable web inspector for all windows, even if they’re part of the browser.

Allows us to use our dev tools to debug browser windows itself.

–memory-model

Configure Chrome’s memory model.

Does chrome really need multiple memory models? No. But we get a lot

of concerns from individuals about how the changes work on *their*

system, and we need to be able to experiment with a few choices.

–tab-count-to-load-on-session-restore

Used to set the value of SessionRestore::num_tabs_to_load_. See session_restore.h for details.

const wchar_t kTabCountToLoadOnSessionRestore[] .

–memory-profile

Enable dynamic loading of the Memory Profiler DLL, which will trace

all memory allocations during the run.

–enable-file-cookies

By default, cookies are not allowed on file://. They are needed in for

testing, for example page cycler and layout tests. See bug 1157243.

–start-maximized

Start the browser maximized, regardless of any previous settings.

TODO(pjohnson): Remove this once bug 1137420 is fixed. We are using this

as a workaround for not being able to use moveTo and resizeTo on a

top-level window.

–enable-watchdog

Spawn threads to watch for excessive delays in specified message loops.

User should set breakpoints on Alarm() to examine problematic thread.

Usage: -enable-watchdog=[ui][io]

Order of the listed sub-arguments does not matter.

–first-run

Display the First Run experience when the browser is started, regardless of

whether or not it’s actually the first run.

–message-loop-strategy

–message-loop-histogrammer

Enable histograming of tasks served by MessageLoop. See about:histograms/Loop

for results, which show frequency of messages on each thread, including APC

count, object signalling count, etc.

–import

Perform importing from another browser. The value associated with this

setting encodes the target browser and what items to import.

–silent-dump-on-dcheck

Change the DCHECKS to dump memory and continue instead of crashing.

This is valid only in Release mode when –enable-dcheck is specified.

–disable-prompt-on-repost

Normally when the user attempts to navigate to a page that was the result of

a post we prompt to make sure they want to. This switch may be used to

disable that check. This switch is used during automated testing.

–disable-popup-blocking

Disable pop-up blocking.

–disable-javascript

Don’t execute JavaScript (browser JS like the new tab page still runs).

–disable-java

Prevent Java from running.

–disable-plugins

Prevent plugins from running.

–disable-images

Prevent images from loading.

–use-lf-heap

Use the low fragmentation heap for the CRT.

–gears-plugin-path

Debug only switch to specify which gears plugin dll to load.

–gears-in-renderer

Switch to load Gears in the renderer process.

–enable-p13n

–javascript-debugger-path

Allow loading of the javascript debugger UI from the filesystem.

–new-http

Enable new HTTP stack.

分享到:
评论

相关推荐

    skyline在chrome下运行

    Skyline 在 Chrome 下的运行配置 Skyline 是一款基于 Web 的三维地球浏览器,能够在浏览器中显示三维地球模型。为了在 Chrome 浏览器中运行 Skyline,我们需要对 Chrome 进行配置。下面是 Skyline 在 Chrome 下...

    chrome 调用本地exe

    注,chrome 通过注册表注册表 只能调用本地的 exe 或者bat文件,不能调用 ppt word 这样的问题,所以我用VB 写了一个exe 可以接收调用参数,这样只许注册一次就可以通过传参打开所有课执行文件了 由于1.exe是后台...

    GoogleChrome Portable_28.0.1500.71

    若之前使用过这里的 Chrome 便携版,则可以将最新的文件解压后覆盖到对应目录,会保留所有的配置,但请注意检查 PortableProfile 是否为空,防止配置文件被覆盖。 注意 Chrome 28 开始使用 Blink 作为浏览器内核,...

    chrome命令行启动.bat

    chrome命令行启动.bat 可以设置窗口位置和大小

    Google Chrome Portable 72.0.3626.119 (64位版) 便携版 (Portable)

    基于 Google Chrome 72.0.3626.119 Stable 正式版制作便携版,下载解压后直接运行 ChromePortable.exe 即可,注意新版 Google Chrome 已不支持 Windows XP 了。 现在 ChromePortable.exe 已完全重写,基本实现了 ...

    ChromePortable-Chrome便携化、绿化工具 part1

    本程序启动时,通过读取ChromePortable.ini配置文件中的相关配置内容,可以相应参数和配置启动Chrome浏览器、关联打开chrome.exe支持格式的文件、并支持启动和控制两个先行程序。 1. ChromePortable.exe程序的运行...

    Chrome引导器,可自动更新Chromium

    支持参数传递,可以直接对引导器加参数,会传递给chrome.exe 跟以前我的"Chrome Portable.exe"一样,都是用NSIS编译的,只是将默认的命令行直观化了。望高手勿拍 把它随便放在哪,只要保证同目录下 或 同目录的子...

    ChromePortable-Chrome便携化、绿化工具 part2

    本程序启动时,通过读取ChromePortable.ini配置文件中的相关配置内容,可以相应参数和配置启动Chrome浏览器、关联打开chrome.exe支持格式的文件、并支持启动和控制两个先行程序。 1. ChromePortable.exe程序的运行...

    chrome_debugger:用于 Emacs 的 Chrome Javascript 调试器

    支持来自 chrome 开发人员工具的所有已知调试器功能,如步进、显示堆栈、重新启动帧、对象评估、文件重新编译、Web 工作者调试。 Chrome 需要使用以下命令行参数启动,以便打开调试端口: chrome --remote-...

    下载chrome插件和离线安装CRX文件的方法

    3. 再运行浏览器就可以像以前那样正常安装 Web Store 之外的第三方扩展应用及脚本程序了。 卸载 Chrome 扩展插件 可以进入 User Data\Default\Extensions,将里面对应的文件夹删除,再重新启动 Chrome,即可完成...

    chrome-headless-browser-docker:持续为Linux构建Chrome Docker映像

    Chrome无头浏览器 该docker映像包含Linux Dev通道Chromium( ),其中包含必需的依赖项以及提供了运行无头模式的命令行参数。Chrome无头浏览器XL 该泊坞窗图像包含额外的字体,因此图像尺寸更大。具有Selenium中的...

    Chrome事件记录器「Chrome Event Logger」-crx插件

    然后单击显示检查视图的CEL图标旁边的链接,以检查CEL日志记录:_genic_background_page.html ##手动调整日志记录在扩展程序的后台页面的JS控制台中,可以运行一些命令来调整记录的内容://返回chrome。* API事件的...

    mocha-headless-chrome:通过无头Chrome在命令行中运行客户端Mocha测试

    然后运行CLI,并使用-f参数指定测试页路径。 mocha-headless-chrome -f test-page.html 选项 -f, -- file-包含测试的页面的路径或URL(必需) -r, --reporter-摩卡报告者名称(默认为“ spec”) -o, -- out-...

    Puppeteer:无头的Chrome Node.js API-开源

    但是,也可以将其设置为运行完整版或非无头Chrome或Chromium,只需在启动浏览器时设置无头选项即可。 您可以在浏览器中手动执行的许多操作,也可以使用Puppeteer进行,例如生成页面屏幕截图和PDF,抓取单页应用程序...

    chrome-flash-toggle:一对 AppleScript 脚本,可快速启用 Chrome 的 Flash 插件

    我写这些是因为我发现运行 Flash,即使它实际上没有做任何事情,也会对我的系统资源造成比我想要的更多的损失。 由于世界上有足够多的人最终切换到 HTML5 视频,我可以在大多数情况下不用它,所以我尝试在我不实际...

    docker-chromium:具有Chrome桌面和Web VNC客户端的docker容器,可让您在拥有的任何服务器上运行Chrome

    注意:本快速入门中提供的Docker命令是作为示例提供的,应根据您的需要调整参数。 使用以下命令启动Chromium docker容器: docker run -d \ --name=chromium \ -p 5800:5800 \ -v /docker/appdata/chromium

    HubSpot-Developer-Extension:适用于HubSpot开发人员的Chrome扩展程序

    适用于HubSpot开发人员的Chrome / Chromium扩展程序,它为常用的HubSpot查询参数添加了有用的快捷方式,以及使HubSpot开发更加轻松愉快的工具。 有关许多功能的详细信息,我们有一个Wiki页面,详细介绍了这些: ...

    FireFox Chrome IE浏览器调试JavaScript

    什么是Firebug 从事了数年的Web开发工作,越来越觉得现在对...象C shell或Python shell一样,你还能在控制台中查看变量内容,直接运行javascript语句,就算是大段的javascript程序也能够正确运行并拿到运行期的信息。

    NEATChromeDino:教一个神经网络(使用NEAT)玩chrome dino迷你游戏的Python程序

    AI(NEAT)玩Chrome Dino游戏 Python程序,使用NEAT...·要使用NEAT算法的参数,请进入/ Chrome Dino AI /文件夹,然后打开名为“ config-feedforward.txt”的文件。 在此处阅读NEAT文档以获取每个参数的详细说明: :

    vscode-devtools:VSCode扩展,用于在Webview中托管chrome devtools

    如果您正在寻找更简化且受官方支持的devtools扩展,则应尝试附加到正在运行的Chrome实例:启动“ Chrome调试程序”项目并使用截屏视频:使用扩展名作为调试器启动通过使用launch.json配置文件,您可以像调试器一样...

Global site tag (gtag.js) - Google Analytics