Preview 3-731.pptx

Debugging Performance Issues Using Visual Studio 2015

1.0x

Preview 3-731.pptx

Created 2 years ago

Duration 0:00:00
lesson view count 12
Debugging Performance Issues Using Visual Studio 2015
Select the file type you wish to download
Slide Content
  1. Andrew Hall, Angelos Petropoulos

    Slide 1 - Andrew Hall, Angelos Petropoulos

    • Visual Studio Program Managers
    • Debugging Performance Issues Using Visual Studio 2015
    • 3-731
    • //build/ content is being presented by Microsoft Office Mix The video for this session will be available shortly
  2. Loading…

    Slide 2 - Loading…

  3. Why is performance important?

    Slide 3 - Why is performance important?

    • (source: http://www.businessnewsdaily.com)
  4. Continuously evaluate performance during normal debugging

    Slide 4 - Continuously evaluate performance during normal debugging

    • PerfTips
    • Memory tool
    • CPU graph
    • Drill into the details of a performance issue
    • Timeline tool
    • CPU tool
    • Standalone Profiler
    • Agenda
  5. PerfTips

    Slide 5 - PerfTips

    • CPU Graph
    • DEMO
  6. Quickly measure time between breaks

    Slide 6 - Quickly measure time between breaks

    • Excludes major debugger related overhead
    • Time stopped under the debugger (e.g. stopped at a breakpoint)
    • Symbol loading
    • Etc.
    • Best suited for order of magnitude measurements
    • Greatest accuracy on CLR 4.6 and Windows 10
    • PerfTips
  7. Shows CPU utilization across all available cores

    Slide 7 - Shows CPU utilization across all available cores

    • Spikes can be interesting, even if less than 100%
    • Available after debugging session has stopped
    • CPU graph
  8. Memory Tool

    Slide 8 - Memory Tool

    • DEMO
  9. Compare memory consumption over time

    Slide 9 - Compare memory consumption over time

    • Provides sizes and count for each type
    • Filters out objects marked for garbage collection (.NET)
    • Works for both C++ and .NET apps
    • Memory tool
  10. Diagnostic Tools Without Debugging

    Slide 10 - Diagnostic Tools Without Debugging

    • Timeline Tool
    • DEMO
  11. Identify app performance issues due to

    Slide 11 - Identify app performance issues due to

    • Parsing & Layout
    • Application code or other runtime CPU consumption
    • Monitor FPS throughput
    • Timeline tool
  12. CPU Tool

    Slide 12 - CPU Tool

    • DEMO
  13. Records which functions are using the CPU the most

    Slide 13 - Records which functions are using the CPU the most

    • Takes a call stack from the CPU every millisecond
    • Shows aggregate report
    • Collects mixed mode stacks (.NET & C++)
    • CPU tool
  14. Performance Wizard

    Slide 14 - Performance Wizard

    • Standalone Profiler
    • DEMO
  15. Part of Visual Studio Remote toolshttp://www.microsoft.com/en-us/download/details.aspx?id=46874

    Slide 15 - Part of Visual Studio Remote toolshttp://www.microsoft.com/en-us/download/details.aspx?id=46874

    • CPU sampling on Windows 8+ works with x-copy
    • Standalone Profiler
  16. For everything Visual Studio diagnostics related

    Slide 16 - For everything Visual Studio diagnostics related

    • http://aka.ms/diagnosticsblog
    • Make suggestions and vote
    • http://visualstudio.uservoice.com
    • Let us know when something works well (or doesn’t) for you via Send-a-Smile
    • Keep up to date and tell us what you think