Microsoft
70-355 · Question #20
You are creating a Universal Windows Platform (UWP) app by using Microsoft Visual Studio 2015. You discover that the app uses more memory than expected. You suspect that a method named Method1 is…
The correct answer is A. From Visual Studio, set a breakpoint on the method and immediately after the method. From the Diagnostic Tools, click Take Snapshot when each breakpoint is hit. See the full explanation below for the reasoning.
Question
You are creating a Universal Windows Platform (UWP) app by using Microsoft Visual Studio 2015. You discover that the app uses more memory than expected. You suspect that a method named Method1 is consuming most of the memory. You need to identify the changes in memory that are a direct result of executing Method1. What should you do?
Options
- AFrom Visual Studio, set a breakpoint on the method and immediately after the method. From the Diagnostic Tools, click Take Snapshot when each breakpoint is hit.
- BFrom the Debug tab in Visual Studio, click Start Diagnostic Tools Without Debugging, select Application Timeline, and then click Start. From the Windows Performance Analyzer, record the memory consumption.
- CFrom Windows Performance Monitor, create a Data Collector Set (DCS). Start the DCS, run the app, and then stop the DCS.
- DFrom the Debug tab in Visual Studio, click Start Diagnostic Tools Without Debugging, select CPU Usage, and then click Start. From the Windows Performance Analyzer, record the memory consumption.
How the community answered
(29 responses)- A83% (24)
- B3% (1)
- C3% (1)
- D10% (3)
Community Discussion
No community discussion yet for this question.