Keep track of activity and resource consumption of a NodeJS process