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

Wrox.com Code Downloads for this Chapter

The wrox.com code downloads for this chapter are found at www.wrox.com/remtitle.cgi?isbn=1118314081 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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.