Salesforce Certified Platform Developer II — Question 129
A developer has a Debug method within a class, which is invoked hundreds of times.
What is the optimal functionality in the Developer Console to count the number of calls made to the method?
Answer options
- A. The "Execution Log" Panel
- B. The "Execution Stack" Panel
- C. The "Executed Units" tab under the Execution Overview Panel
- D. The "Execution Tree" tab under the Stack Tree Panel
Correct answer: C
Explanation
The 'Executed Units' tab under the Execution Overview Panel provides a clear count of the number of times methods are executed, making it the ideal choice for tracking the Debug method calls. The other options do not specifically count method invocations, as they focus on different aspects of execution flow or stack information.