I sometimes add other tests at least temporarily, often to a small function that wraps console so that I can carry on dumping a gazillion log statements without worrying whether I left some in when I published the code
/** Dump process memory use to console
* @param {string} prefix Text to output before the memory info
*/
dumpMem: (prefix) => {
let mem = process.memoryUsage()
const formatMem = (m) => ( m/1048576 ).toFixed(2)
mylog(`${prefix} Memory Use (MB): RSS=${formatMem(mem.rss)}. Heap: Used=${formatMem(mem.heapUsed)}, Tot=${formatMem(mem.heapTotal)}. Ext C++=${formatMem(mem.external)}`)
},
So I can use those in my code without much worry. I've occasionally used an IP address check as well during development of editor or front-end code such that running on localhost (e.g. my development environment) outputs copious information but running from the server doesn't. Lets me do UAT type tests without the noise.