9/19/2017 - 11:41 AM

Node Production

CopenhagenJS conference: Debugging Node.js Performance Issues in Production

Stacktrace on running process (CPU): perf record to record CPU processes (tell node to dump perf meta data with node --perf_basic_prof_only_functions app.js) outputs file in /temp/ and ./ Parse data into file perf script > stack.out. Install npm i -g 0x and the you can generate a chart flame with the parsed data by 0x -c gen stack.out > flame.html.