Bird
0
0

Given this command sequence:

medium📝 component behavior Q13 of 15
Node.js - Debugging and Profiling
Given this command sequence:
node --prof app.js
Then running:
node --prof-process isolate-0x12345-v8.log
What is the output of --prof-process?
AThe original JavaScript source code
BA readable report showing CPU time spent in functions
CA list of all files loaded by Node.js
DAn error message about missing files
Step-by-Step Solution
Solution:
  1. Step 1: Understand purpose of --prof-process

    This command processes the raw CPU profile log into a readable report.
  2. Step 2: Match output to options

    The output is a report showing CPU time spent per function, not source code or file lists.
  3. Final Answer:

    A readable report showing CPU time spent in functions -> Option B
  4. Quick Check:

    --prof-process = readable CPU time report [OK]
Quick Trick: Use --prof-process to get readable CPU report [OK]
Common Mistakes:
  • Expecting source code output from --prof-process
  • Thinking it lists loaded files
  • Confusing it with error output

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Node.js Quizzes