Newer versions of DBI actually come with a profiler as part of the distribution (DBI::Profile). If PM moves to a more recent release at some point, you could use that. It has a pretty nice feature set.
Comment on Re: Re: Node cache refactoring (DBI profiling)