<commit_before># Statify

Pop this gem in your rails >= 3 application.  This gem will utilize a statsd instance and easily track basic performance stats for your application.  This gem can track the following:

- Performance stats broken down by controller and action and further broken down by view rendering times and SQL duration times.
- SQL calls durations
- Ruby garbage collection stats
- Cache hit and miss rates

## Installation

Add this line to your application's Gemfile:

    gem 'statify'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install statify

## Usage

TODO: Write usage instructions here


### Supported categories

- garbage_collection
- controller
- cache
- sql 

## Contributing

1. Fork it<commit_msg>Writing a better readme<commit_after># Statify

Pop this gem in your rails >= 3 application.  This gem will utilize a statsd instance and easily track basic performance stats for your application.  This gem can track the following:

- Performance stats broken down by controller and action and further broken down by view rendering times and SQL duration times.
- SQL calls durations
- Ruby garbage collection stats (this will run after every controller response)
- Cache hit and miss rates

## Installation

Add this line to your application's Gemfile:

    gem 'statify'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install statify

## Pre-Requisities

You will need to have a statsd instance running somewhere that you can connect to.  If you want to graph what is coming out of statsd there are different front ends to use with statsd.  One of them is Graphite: http://graphite.wikidot.com/

## Usage

In your Rails App put these following lines in your config/application.rb:

    config.statify.categories = [:sql, :garbage_collection, :cache, :controller]
    config.statify.statsd = Statsd.new('127.0.0.1', 8125)

Obviously put in the address of your own statsD ip address and port into the statsd.new call.  The categories are opt-in, so put in what you want to use.


### Supported categories

- garbage_collection
- controller
- cache
- sql 

## Contributing

1. Fork it
{'fraction_non_alphanumeric': 0.05501618122977346, 'fraction_numerical': 0.006472491909385114, 'mean_word_length': 3.7665198237885464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5842259', 'n_tokens_mistral': 589, 'n_tokens_neox': 560, 'n_words': 298}