Profiler no longer working with Rails 5.1.7
It looks like the profiler isn't doing the actual GET request. On dev and on my nightly builds, I see:
$ sudo gitlab-rails c
-------------------------------------------------------------------------------------
GitLab: 11.11.0-pre (dbe70751461)
GitLab Shell: 9.0.0
PostgreSQL: 9.6.11
-------------------------------------------------------------------------------------
Loading production environment (Rails 5.1.7)
irb(main):001:0> Gitlab::Profiler.profile('/profile', user: User.first)
Started GET "/api/v4/users" for 127.0.0.1 at 2019-04-26 19:48:39 +0000
Processing by Gitlab::RequestForgeryProtection::Controller#index as HTML
Completed 200 OK in 0ms (ActiveRecord: 0.0ms)
=> #<RubyProf::Profile:0x00007f5aa4f39a20>
irb(main):002:0>
/cc: @engwan