Open lockHrt opened 2 years ago
This uses process.cpuUsage() and process.memoryUsage. memoryUsage has an option that includes worker threads, but CPU usage does not, nor does there appear to be any other way to get that from Node.
In the current design, performance shows information from the currently selected debug session. If you select the parent process, only its performance information is shown. If Node.js eventually adds cumulative APIs for CPU usage, I could see adding an option to show totals session info.
CPU usage is shown 100% even when,
Attaching 2 screenshots showing different cases,
In both cases, CPU usage is shown 100%. Secondly, the graph itself has ups and downs which is not reflected in the CPU usage number.
Also is it possible to get total RAM usage? In the second screenshot, heap is 125 MB whereas at system level, node is occupying 9.5 GBs of RAM.