Chapter 20

Profiling and Performance

What's In This Chapter?

  • Understanding the profiling features in Visual Studio 2012
  • Understanding available profiling types
  • Using Performance Explorer to configure profiling sessions
  • Profiling reports and available views
  • Profiling JavaScript Code Downloads for this Chapter

The code downloads for this chapter are found at on the Download Code tab. The files are in the Chapter 20 download folder and individually named as shown throughout this chapter.

One of the more difficult tasks in software development is determining why an application performs slowly or inefficiently. Before Visual Studio 2005, developers were forced to turn to external tools to effectively analyze performance. Now, however, Visual Studio includes profiling tools that are fully integrated with both the IDE and other Visual Studio features.

This chapter introduces Visual Studio 2012's profiling tools. Note that the profiling features discussed in this chapter are available in Visual Studio Premium 2012 or higher.

You find out how to use the profiler to identify problems such as inefficient code, overallocation of memory, and bottlenecks. You learn about the two main profiling options — sampling and instrumentation — including how to use each, and when each should be applied. In Visual Studio 2012, there are two sampling options: one for CPU sampling and the other for memory allocation sampling. This chapter examines ...

Get Professional Application Lifecycle Management with Visual Studio 2012 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.