On Wed, Jul 26, 2006 at 09:51:02AM +0100, Martin J. Evans wrote: > > On 25-Jul-2006 Tim Bunce wrote: > > Use DBI::Profile to see where the time is being spent. > > I am looking into this. > > My first attempt at setting DBI_PROFILE=2 and running my script returned with: > > DBI::Profile on_destroy failed: Undefined subroutine > &DBI::Profile::time_in_dbi > called at > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/DBI/Profile.pm > line 641 during global destruction. > > Looking at line 640-642: > > $prologue .= sprintf "%fs ", $time_in_dbi; > my $perl_time = ($DBI::PERL_ENDING) ? time_in_dbi() - $^T : > $t2-$t1; > $prologue .= sprintf "%.2f%% ", $time_in_dbi/$perl_time*100 if > $perl_time; > > I cannot find a time_in_dbi sub, only a scalar called time_in_dbi. To make it > work I had to change the above to use $time_in_dbi and not time_in_dbi(). > Don't > know if this was correct but thought I ought to mention it.
Yeap. It's fixed in the next version which I hope to release this week. Tim.