This document provides a quick introduction to profiling code using the Xdebug profiler Cachegrind. It discusses evaluating performance per function by looking at metrics like execution time, cumulative time, and number of calls. It also covers evaluating code flow and tips for using Cachegrind, including enabling it in the PHP config file and a MastersPortal configuration. The document recommends using a regex expression to filter functions when first looking at the overall profiling data and walking through functions to check for expected self and cumulative times and number of calls.