Railsアプリケーションに導入することで、Viewのレンダリングやデータベースへのクエリにかかった時間を計測し、その結果をすべてのページ上に表示してくれるrack-mini-profilerというgemがある。 MiniProfiler/Ruby at master · SamSaffron/MiniProfiler · GitHub 計測結果は画面左上に小さく表示され、邪魔になりにくいようになっているんだけど、それでも邪魔なときがある。 計測結果をページに表示しないようにするには方法が2つある。 1つ目 URLの末尾に?pp=disableというクエリを付け加えることで、計測結果が表示されなくなる。 例: 一度この設定を行うと、そのセッションが有効な間はずっと計測結果が表示されない状態になる。 再度表示させたい場合は、URLの末尾に?pp=enableと付け加えれば良い 2つ目 1つ目