No commit activity in last 3 years
No release in over 3 years
Prints ruby processing time to stdout.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

= 4.6.2
 Project Readme

unicorn-instruments

This is a hack in order to account for the total time spent in ruby while processing http requests.

Usage

gem 'unicorn-instruments'

Require the gem in your unincorn config file.

config/unicorn.rb

require 'unicorn-instruments'
...

Synopsis

Start a timer.
Call accept().
Call send().
Close socket.
Stop timer.
Print Elapsed time.

If the timer elapsed for 4ms, the following log line will be printed:

measure=unicorn.process val=4

Using this data with l2met you can plot the unicorn processing time with the router service time. The difference between the values will be the time spent in the Heroku network.

img