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
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 ...