summaryrefslogtreecommitdiff
path: root/app/views/sherlock
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2015-11-19 12:33:58 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2015-11-24 10:57:21 +0100
commit97f8c6279fc39c4bad87bb880eba04802f6d351d (patch)
treeef1eac455f8529ae4e35f3b286e225e556f148ee /app/views/sherlock
parent31a34b591731eb8997da4844287d7c31e3686454 (diff)
downloadgitlab-ce-97f8c6279fc39c4bad87bb880eba04802f6d351d.tar.gz
Added total query time to Sherlocksherlock-total-query-time
This makes it easier to see if a problem is caused by slow queries or slow Ruby code (unrelated to any SQL queries that might be used).
Diffstat (limited to 'app/views/sherlock')
-rw-r--r--app/views/sherlock/transactions/_general.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/sherlock/transactions/_general.html.haml b/app/views/sherlock/transactions/_general.html.haml
index 4287a0c3203..8533b130da6 100644
--- a/app/views/sherlock/transactions/_general.html.haml
+++ b/app/views/sherlock/transactions/_general.html.haml
@@ -27,6 +27,12 @@
= t('sherlock.seconds')
%li
%span.light
+ #{t('sherlock.query_time')}
+ %strong
+ = @transaction.query_duration.round(2)
+ = t('sherlock.seconds')
+ %li
+ %span.light
#{t('sherlock.finished_at')}:
%strong
= time_ago_in_words(@transaction.finished_at)