We can get a multi-platform solution using the nodejs ipc protocol. you just need to set up an event to request memory usage from the parent process, and then send process.memoryUsage()from the child process generated.
parent.js
var ChildProcess = require('child_process'),
child = ChildProcess.fork('./child.js');
child.on('message', function(payload){
console.log(payload.memUsage);
});
child.send('get_mem_usage');
and in child.jsit might look like this:
process.on('message', function(msg){
if(msg === 'get_mem_usage'){
process.send({memUsage: process.memoryUsage()});
}
});