Hacker News new | ask | show | jobs
by naeioi 1277 days ago
Many of these flags are not intended to be used on their own. For example, you can use "./chrome --memlog-sampling-rate=10000" but not "./chrome --10000". This information is, understandably, not explicitly stated on this page.
2 comments

There's only a single flag in `--memlog-sampling-rate=10000` though.
The docs say, uh, the exact opposite though.

--10000 is a single flag

--memlog-sampling-rate=10000 is uh, well, also a single flag

according to these docs both flags should be valid?

AFAIK, only "--memlog-sampling-rate=10000" is valid. Neither standalone "--10000" nor "--memlog-sampling-rate --10000" is valid.

See the comment https://source.chromium.org/chromium/chromium/src/+/main:bas...

Also see how the flag is actually parsed: https://source.chromium.org/chromium/chromium/src/+/main:com...