Node.js · Performance · Fresh / Intern · Debugging
How do you profile a slow Node service?
Short Interview Answer
CPU profiles, flamegraphs, heap snapshots, event-loop delay metrics, and APM traces — hypothesize then measure.
Detailed Explanation
Avoid premature optimization. Reproduce with load tests. Distinguish JS CPU, GC, I/O wait, and lock time.