No commit activity in last 3 years
No release in over 3 years
Logging per request memory usage with rack app.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

>= 0
 Project Readme

Rack::ObjectCounter

Memory increase profiler for rack app.

Installation

Add this line to your application's Gemfile:

gem 'rack-object_counter', require: 'rack/object_counter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rack-object_counter

Usage

rails

Write to config/initializers/object_counter.rb

Rails.application.config.middleware.use Rack::ObjectCounter
Rack::ObjectCounter.logger = Rails.logger

rack app

Write to config.ru

require 'logger'
use Rack::ObjectCounter
Rack::ObjectCounter.logger = Logger.new(STDOUT)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/yalab/rack-object_counter.

License

The gem is available as open source under the terms of the MIT License.