0.0
No commit activity in last 3 years
No release in over 3 years
rails controller logging of GC stats using gctools
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.2.3, ~> 0.2
 Project Readme

gctools-rails

Logs the amount of time spent in the MRI garbage collector to the Rails controller log. For example:

Completed 200 OK in 631ms (Views: 22.1ms | ActiveRecord: 18.7ms | GC=167.0ms | Search=0.0ms | Redis=2 | Memcache=7 | master-queries=3 | shard_0-queries=20 | shop_name=shop1.myshopify.io  | dest_host=shop1.myshopify.io  | pid=45776  | shop_id=1 | shard_id=0 | request_id=cfec5667-8f0b-4b11-b676-6300083bd04f | session_id=20ee8aefeeeae62ece61f6510eed6ac6446723cb315659084f760488bcac1857 | ssl=false | rev=1 )

Install

Add the following to your Gemfile:

gem 'gctools-rails'

Notes

gctools-rails cannot be used at the same time as the gctools logger, as they both use GCProf.after_gc_hook.