Pinba is a realtime PHP monitoring tool that accumulates and processes data sent over UDP by multiple PHP processes, and provides access to the data using MySQL. It also allows you to measure particular parts of the code using timers with arbitrary tags.