Q71: How do you profile CPU usage in a Node.js application?

Run the application with the --prof V8 flag, perform load operations, and analyze the resulting tick log file using node --prof-process isolate-*.log.

Key Takeaways
  • Generate V8 profiling logs using --prof flag.
  • Process output tick logs to identify performance bottleneck functions.
Knowledge Check

Which command-line flag enables V8 built-in CPU profiling tick logs?