- 1 year ago
List of --js-flags that can be used for Chrome on Windows?
Comment
1 / 1
To specify JavaScript flags when running Chrome on Windows, you can use the --js-flags
command-line option followed by the desired JavaScript flags. Here are some commonly used --js-flags
options:
--expose-gc
: Allows manual triggering of garbage collection using thegc()
function.--max-old-space-size
: Sets the maximum size of the old generation heap in megabytes.--max-semi-space-size
: Sets the maximum size of the semi-space heap in megabytes.--trace-gc
: Enables garbage collection tracing.--trace-gc-object-stats
: Enables tracking of memory statistics for objects.--trace-gc-ignore-scavenger
: Ignores scavenger collections in garbage collection tracing.--trace-gc-stats
: Enables detailed garbage collection statistics.--allow-natives-syntax
: Enables the use of(%DebugPrint()
,(%_DebugObjectPrint())
, and other V8 native functions.
These are just a few examples of the --js-flags
options available. The full list of available flags can vary depending on the version of Chrome and the underlying V8 JavaScript engine.
To view a comprehensive list of JavaScript flags supported by your specific version of Chrome, you can visit the official V8 JavaScript engine documentation at https://v8.dev/docs/command-line-flags.
Remember to check the documentation or release notes specific to the version of Chrome you are using, as some flags may change or be deprecated over time.