3 dbh->{'private_profile'} = {} if UNIVERSAL::can(dbh, 'sprintProfile');
8 if ( UNIVERSAL::can(dbh, 'sprintProfile') ) {
10 if ( lc($r->content_type) eq 'text/html'
11 && $FS::CurrentUser::CurrentUser->option('show_db_profile')
15 ## barely worth it, just in case someone tries to use profiling on a
17 #eval "use Text::Wrapper;";
20 my $wrapper = new Text::Wrapper( columns => 80 );
21 my $text = dbh->sprintProfile();
22 #my $text = $wrapper->wrap( dbh->sprintProfile() );
26 encode_entities( $text ).
27 #"\n\n". &sprintAutoProfile(). '</PRE>';
31 dbh->{'private_profile'} = {};
34 s/(<\/BODY>[\s\n]*<\/HTML>[\s\n]*)$/$profile$1/i;