`
alanland
  • 浏览: 642622 次
  • 性别: 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 可以设置窗口位置和大小

    chrome崩溃.docx

    Chrome的沙盒模式是一种安全特性,它将每个浏览器标签页和扩展程序运行在独立的环境中,以防止它们相互影响或对操作系统造成破坏。然而,有时沙盒模式可能会因系统权限问题或与其他安全软件冲突而导致崩溃。通过添加...

    chrome调用ocx.zip

    `chrome.r39.crx` 是一个Chrome浏览器的扩展文件,它可能包含了一种解决方案,允许Chrome在特定条件下加载并运行OCX控件。而 `ffactivex-setup-r39.exe` 可能是一个安装程序,用于在Firefox浏览器中启用ActiveX支持...

    信安chrome离线包

    【描述】中提到的“含缺失的依赖”意味着这个离线包包含了Chrome浏览器运行所必需的但可能在麒麟信安系统中默认缺失的库文件和组件。这些依赖可能包括各种动态链接库(.dll或.so文件)、字体、系统API等,确保Chrome...

    chrome命令行启动.zip

    批处理文件的格式是基于Windows的DOS命令,它会运行`chrome.exe`程序并传递参数。 在Windows系统中,Chrome的可执行文件位于`%ProgramFiles%\Google\Chrome\Application`目录下。打开命令提示符,你可以直接输入...

    chrome 独立安装包 80.0.3987 X64

    3. **独立安装包**:独立安装包意味着用户可以直接下载并运行这个文件来安装Chrome,而不需要通过操作系统或其他程序管理器进行更新或安装。这在企业环境中尤其有用,因为可以控制何时以及如何更新浏览器,确保系统...

    Chrome谷歌浏览器(免安装).zip

    1. **ChromePortable.ini**:这是一个配置文件,用于存储Chrome便携版的设置和参数,如默认语言、用户数据路径等。通过编辑这个文件,用户可以自定义Chrome的启动行为和配置。 2. **ChromePortable.bat**:这是一个...

    chrome homepage覆盖方法

    请注意,对于个人用户,不建议随意修改系统级别的设置文件,以免影响其他应用程序或系统的正常运行。如果你是企业用户或IT管理员,确保了解并遵循最佳实践来管理和部署这些设置。 总结,Chrome浏览器主页的覆盖方法...

    metersphere-chrome-plugin

    在IT行业中,性能测试是一项至关重要的任务,它确保了软件系统在高负载下仍能正常运行。而Metersphere与JMeter的结合,为性能测试提供了一套高效、便捷的解决方案。本文将深入探讨"Metersphere Chrome 插件"这一工具...

    SimpleSerialApp_Chrome应勇串口通信_

    Chrome应用程序(App)是一种基于Web技术构建的应用,可以在Chrome浏览器或Chrome操作系统上运行。它们拥有离线功能,并能访问特定的Chrome API,其中包括用于串口通信的`chrome.serial` API。 **Chrome的`chrome....

    chrome插件demo 实现各个类型的js之间的通信

    在Chrome插件的开发中,有多种JavaScript环境同时运行,包括背景脚本(background script)、内容脚本(content script)、选项页面脚本(options page script)以及弹出窗口脚本(popup script)。这些脚本通常不能...

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

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

    Chrome版本查看.rar

    5. **命令行接口**:如果该源码提供了命令行接口,那么用户可以通过在命令行中输入特定参数来运行程序,获取Chrome的版本信息,这对于自动化脚本非常有用。 通过学习和理解这份易语言源码,不仅可以掌握如何获取...

    Chrome 进阶技巧:将缓存路径放到非系统分区并设置大小

    尽管Chrome默认将所有文件放置在系统分区中,但用户可以通过特定的方法来调整这些文件的存放位置,并限制缓存的大小。本文将详细介绍如何利用Chrome的命令行参数`--disk-cache-dir`和`--disk-cache-size`来实现这一...

    Linux下以root身份运行Chrome.pdf

    在Linux系统中,由于安全性的考虑,很多程序不推荐或者不允许以root权限运行,Google Chrome浏览器就是其中之一。这是因为以root权限运行程序会增加系统被恶意软件攻击的风险,因为root权限可以对整个系统进行不受...

    linux下google浏览器chrome最新版本

    在这个压缩包里,`etc`可能包含了Google Chrome的配置文件,例如铬浏览器的启动参数、默认设置等。用户可以通过修改这些文件来定制Chrome的行为,比如更改启动页面、设置代理或者调整隐私设置。 最后,`opt`目录在...

    Chrome插件-Talend API Tester

    用户可以自定义请求头,设置不同类型的请求体(如JSON、XML),并添加任意多的查询参数。 2. **响应查看**:插件能够展示详细的HTTP响应,包括状态码、头部信息和响应内容。这对于理解服务器的返回结果和调试问题...

Global site tag (gtag.js) - Google Analytics