diff options
author | Byron Jones <glob@mozilla.com> | 2014-05-05 18:14:15 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-05-05 18:14:15 +0200 |
commit | 161d513dca8099c125b988112fc9531e8537f158 (patch) | |
tree | e93ae4819100ab883d4f6b92db87e7af5a7c8834 /show_bug.cgi | |
parent | 117e82408036b85d6c8caa2c6c4919d6285387f5 (diff) | |
download | bugzilla-161d513dca8099c125b988112fc9531e8537f158.tar.gz bugzilla-161d513dca8099c125b988112fc9531e8537f158.tar.xz |
Bug 1005959: remove old timing code from show_bug
Diffstat (limited to 'show_bug.cgi')
-rwxr-xr-x | show_bug.cgi | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/show_bug.cgi b/show_bug.cgi index 99679f7ad..332d5fcbd 100755 --- a/show_bug.cgi +++ b/show_bug.cgi @@ -30,16 +30,12 @@ use Bugzilla::Error; use Bugzilla::User; use Bugzilla::Keyword; use Bugzilla::Bug; -use Bugzilla::Instrument; - -my $timings = Bugzilla::Instrument->new('show_bug'); my $cgi = Bugzilla->cgi; my $template = Bugzilla->template; my $vars = {}; my $user = Bugzilla->login(); -$timings->time('login_time'); my $format = $template->get_format("bug/show", scalar $cgi->param('format'), scalar $cgi->param('ctype')); @@ -93,10 +89,8 @@ if ($single) { } } } -$timings->time('load_bug_time'); Bugzilla::Bug->preload(\@bugs); -$timings->time('preload_time'); $vars->{'bugs'} = \@bugs; $vars->{'marks'} = \%marks; @@ -134,10 +128,3 @@ print $cgi->header($format->{'ctype'}); $template->process($format->{'template'}, $vars) || ThrowTemplateError($template->error()); -$timings->time('template_time'); - -if (scalar(@bugids) == 1) { - $timings->label('bug-' . $bugs[0]->id); - $timings->label('user-' . $user->id); - $timings->log(); -} |