diff options
author | Rémy Coutable <remy@rymai.me> | 2017-10-24 08:06:40 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-10-24 08:06:40 +0000 |
commit | 057c81b168c2aea0b4277ec748ce59c195032eaf (patch) | |
tree | 29a0e567888f74fb672575dde5bad823f117bcbf /lib | |
parent | e16add2267648d3d3ef1d98f9b53f67a29428791 (diff) | |
parent | 189b5c3c390314da742d7d22cc32c5cc51833130 (diff) | |
download | gitlab-ce-057c81b168c2aea0b4277ec748ce59c195032eaf.tar.gz |
Merge branch 'performance-bar-sql' into 'master'
Remove Sherlock usage from the performance bar
Closes #39351
See merge request gitlab-org/gitlab-ce!15000
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/performance_bar/peek_query_tracker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/performance_bar/peek_query_tracker.rb b/lib/gitlab/performance_bar/peek_query_tracker.rb index 67fee8c227d..69e117f1da9 100644 --- a/lib/gitlab/performance_bar/peek_query_tracker.rb +++ b/lib/gitlab/performance_bar/peek_query_tracker.rb @@ -36,8 +36,8 @@ module Gitlab end def track_query(raw_query, bindings, start, finish) - query = Gitlab::Sherlock::Query.new(raw_query, start, finish) - query_info = { duration: query.duration.round(3), sql: query.formatted_query } + duration = finish - start + query_info = { duration: duration.round(3), sql: raw_query } PEEK_DB_CLIENT.query_details << query_info end |