Closed conartist6 closed 2 years ago
You may take a look at this:
DEFINE_IMPLICATION(log_all, log_api)
DEFINE_IMPLICATION(log_all, log_code)
DEFINE_IMPLICATION(log_all, log_suspect)
DEFINE_IMPLICATION(log_all, log_handles)
DEFINE_IMPLICATION(log_all, log_internal_timer_events)
DEFINE_IMPLICATION(log_all, log_function_events)
According to it:
node --log-all script.js
is supposed to behave like this:
node --log-api --log-code --log-suspect --log-handles --log-internal-timer-events --log-function-events script.js
This does produce a log file for me.
However, this says:
// --log-all
// Log all events to the file, default is off. This is the same as combining
// --log-api, --log-code, and --log-regexp.
But --log-regexp
is not an option yet.
cc @nodejs/v8
If this is still an issue, it should be reported at https://bugs.chromium.org/p/v8/issues/entry
I'm trying to use the new indicium analyzer, but I'm having trouble figuring out how to get node to spit out the correct data.
I assume I should be able to use
--log-all
and that v8 will then write information about internal events (optimizations, deopts, ICs, etc) tov8.log
. This is what the descriptions of these flags indicates when I runnode --v8-options
. If I pass an option not supported by node or v8 I get an error, so the flags I pass are being received. But stillnode --log-all ./my-script.js
does not generate anyv8.log
file.Specifying a full absolute path with the
--logfile
flag does not seem to help. There are no perms issues.Any suggestions?