On Fri, Oct 23, 2009 at 10:46:10AM -0500, E R wrote:
> I'd like to collect the following statistics about DBI usage:
> 
>  - total number of rows fetched from all queries
>  - total wall clock time spent waiting for the database
> 
> For the second statistic it would be fine if I just got wall clock
> time "inside" DBI routines (or certain DBI routines).
> 
> Is there any easy way to do get these numbers?

Yes.

http://search.cpan.org/perldoc?DBI::Profile
http://cpansearch.perl.org/src/TIMB/DBI_AdvancedTalk_2004/sld001.htm

Tim.

Reply via email to