Chapter 20

What to Look For

Given a program or set of programs exhibiting performance problems, how do we approach an understanding of the program dynamics that will lead to an understanding of why some operations are slow—and hence will lead to program changes that speed things up?

20.1 Overview

The hard part of performance analysis is observing what programs are actually doing rather than the simpler imagined picture in the reader’s (or original designer’s) head of what the programs are expected to be doing. At the end of this Part IV, readers will be able to find, understand, and fix unexpectedly bad software dynamics within complex code.

Figure 20.1 shows a framework for thinking about slow transactions. Within the elapsed time from start ...

Get Understanding Software Dynamics 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.