Last active
December 27, 2020 14:28
-
-
Save yetithefoot/e466827c7756f6a7a03e to your computer and use it in GitHub Desktop.
Runs Google Chrome with memory objects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To enable window.gc() on Chrome browser console you just need to start Chrome like this: | |
> /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --js-flags="--expose-gc" --enable-memory-info | |
Those flags enable the following console API, very usefull to debug memory leaks: | |
> console.memory // print memory information | |
> window.gc() // force garbage collection |
=)
"window.gc()" doesn't work with Chrome 53.0.2785.143. Does somebody know how to force the garbage collection in the latest Chrome?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Что с кавычками? Почему их три?