In this chapter, we ll investigate the gprof utility and explore how it can be used to help build efficient programs. We ll learn how software must be built for use with gprof and then understand the data products that are provided. Finally, we ll investigate the variety of options that gprof provides and how they can be used.