Javascript – How to measure CPU usage of an async function
Given an arbitrary async function in Node.js, is there any way to properly measure the CPU usage of that function, including all of its async microtasks? I thought async_hooks was the way to do this, but I'm not sure how…