Commit graph

7 commits

Author SHA1 Message Date
Yorick Peterse
58058ce0ca
Fix SQL timings for the performance bar
My recent change accidentally changed the reported time from
milliseconds to seconds, resulting in wrong timings being displayed.
2017-11-03 15:45:58 +01:00
Yorick Peterse
189b5c3c39
Remove Sherlock usage from the performance bar
Sherlock::Query generates a backtrace on every call to "new", which is
very slow. Formatter queries are also not displayed properly due to the
lack of "white-space: pre" in the CSS. We took a look at fixing this,
but the produced output is not really better than just displaying
queries on one line.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/39351
2017-10-23 14:59:07 +03:00
Rémy Coutable
3dcd3df531
Fix queries duration sorting in Performance Bar
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-18 19:00:46 +02:00
Rémy Coutable
32eaf46ead
Don't track cached queries in Gitlab::PerformanceBar::PeekQueryTracker
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-17 16:44:00 +02:00
Grzegorz Bizon
0430b76441 Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
Rémy Coutable
e859145329 Fix Rubocop offenses, improve SQL duration format and changelog entry
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-09 17:21:39 +02:00
Rémy Coutable
651eb51ece Display queries duration in performance bar queries modal
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-09 17:21:39 +02:00
Renamed from lib/gitlab/performance_bar/peek_pg_with_queries.rb (Browse further)