diff options
author | Byron Jones <bjones@mozilla.com> | 2012-03-22 07:18:18 +0100 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-03-22 07:18:18 +0100 |
commit | 399f0b45f6fb796941b92ed2899fcc17e3ab0ea9 (patch) | |
tree | edbcf9a735086d581897b7ac7a8d30f825e7bfe7 /buglist.cgi | |
parent | 8e28c08bc098913884b413e9989f3ec8a4a35bf9 (diff) | |
download | bugzilla-399f0b45f6fb796941b92ed2899fcc17e3ab0ea9.tar.gz bugzilla-399f0b45f6fb796941b92ed2899fcc17e3ab0ea9.tar.xz |
Bug 732440: add sql timings to buglist.cgi's debug output
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/buglist.cgi b/buglist.cgi index 7b513e607..d2f9a6904 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -51,6 +51,7 @@ use Bugzilla::Status; use Bugzilla::Token; use Date::Parse; +use Time::HiRes qw(gettimeofday tv_interval); my $cgi = Bugzilla->cgi; my $dbh = Bugzilla->dbh; @@ -830,8 +831,10 @@ $::SIG{TERM} = 'DEFAULT'; $::SIG{PIPE} = 'DEFAULT'; # Execute the query. +my $start_time = [gettimeofday()]; my $buglist_sth = $dbh->prepare($query); $buglist_sth->execute(); +$vars->{query_time} = tv_interval($start_time); ################################################################################ |