Multiple choice technology testing

Which type of analysis would you prefer if your application is continuously hanging?

  1. Memory Analysis

  2. Performance Analysis

  3. Coverage Analysis

  4. Static Analysis

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

When an application hangs (freezes or becomes unresponsive), it typically indicates performance bottlenecks rather than memory issues. Performance Analysis helps identify slow methods, threading problems, and blocking calls that cause the application to hang. Memory Analysis is more appropriate for crashes due to out-of-memory errors, while Coverage Analysis tracks code execution and Static Analysis examines code without running it.

AI explanation

When an application hangs continuously, performance analysis (which examines things like CPU usage, thread states, deadlocks, and response times) is the appropriate technique to diagnose what's causing the freeze. Memory analysis targets leaks/heap issues, coverage analysis checks which code paths were executed by tests, and static analysis examines code without running it — none of these directly target a live hanging/performance symptom the way performance analysis does.