Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-06-12 22:23:49 +0300
committerRobert Speicher <robert@gitlab.com>2017-06-12 22:23:49 +0300
commit5a66e6d968fb9b1bd1159b9156a88bd06208e363 (patch)
tree99bd4cdca441db24dd538c6811f9d76c12d2de58 /lib/gitlab/performance_bar.rb
parent8d7951d879d13894dcc1fd5d845c8d844bee321a (diff)
parentbe0a949a004a34015977bdbcfe24e3173cd3aba9 (diff)
Merge branch '29010-perf-bar' into 'master'
Add an optional performance bar to view performance metrics for the current page Closes #29010 See merge request !11439
Diffstat (limited to 'lib/gitlab/performance_bar.rb')
-rw-r--r--lib/gitlab/performance_bar.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/gitlab/performance_bar.rb b/lib/gitlab/performance_bar.rb
new file mode 100644
index 00000000000..163a40ad306
--- /dev/null
+++ b/lib/gitlab/performance_bar.rb
@@ -0,0 +1,7 @@
+module Gitlab
+ module PerformanceBar
+ def self.enabled?
+ Feature.enabled?('gitlab_performance_bar')
+ end
+ end
+end