As a rule, when I write scripts, log messages always go to stderr and data (status messages, results from the algorithm, whatever) goes to stdout.
I would like to get this sent by stderr. It can be done?
It would be nice for me to use my own handler for some kind of process.on('gc') event, if any. There is one?
Right now I am writing code where stdout is reserved for data and I have no choice but to disable -trace-gc. I use memoryUsage() as the second best thing, but it doesn't talk about usage right before and right after the GC, it just tells you about usage whenever memoryUsage() called.
source share