Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
6af883e1
Commit
6af883e1
authored
Mar 22, 2012
by
Byron Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 732440: Add SQL execution timings to buglist.cgi's debug output
r=LpSolit, r=LpSolit
parent
76c90bb4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
buglist.cgi
buglist.cgi
+3
-0
buglist.css
skins/standard/buglist.css
+1
-1
list.html.tmpl
template/en/default/list/list.html.tmpl
+7
-4
No files found.
buglist.cgi
View file @
6af883e1
...
...
@@ -32,6 +32,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
;
...
...
@@ -792,8 +793,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
);
################################################################################
...
...
skins/standard/buglist.css
View file @
6af883e1
...
...
@@ -107,7 +107,7 @@ td.bz_total {
margin-top
:
.25em
;
}
.bz_query_
explain
{
.bz_query_
debug
{
text-align
:
left
;
}
...
...
template/en/default/list/list.html.tmpl
View file @
6af883e1
...
...
@@ -68,10 +68,13 @@
</span>
[% IF debug %]
<p class="bz_query">[% query FILTER html %]</p>
[% IF query_explain.defined %]
<pre class="bz_query_explain">[% query_explain FILTER html %]</pre>
[% END %]
<div class="bz_query_debug">
<p>[% query FILTER html %]</p>
<p>Execution time: [% query_time FILTER html %] seconds</p>
[% IF query_explain.defined %]
<pre>[% query_explain FILTER html %]</pre>
[% END %]
</div>
[% END %]
[% IF user.settings.display_quips.value == 'on' %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment