memory usage logger for nodejs