README.md in cat_tree-0.0.1 vs README.md in cat_tree-0.0.2
- old
+ new
@@ -1,16 +1,41 @@
# CatTree
+[![Gem Version](https://badge.fury.io/rb/cat_tree.svg)](http://badge.fury.io/rb/cat_tree) [![Build Status](https://travis-ci.org/tsukasaoishi/cat_tree.svg?branch=master)](https://travis-ci.org/tsukasaoishi/cat_tree) [![Code Climate](https://codeclimate.com/github/tsukasaoishi/cat_tree/badges/gpa.svg)](https://codeclimate.com/github/tsukasaoishi/cat_tree)
+
CatTree monitors ActiveRecord objects in development environment the number of objects and the number of same objects.
It helps you decrease waste of memory and increase application performance.
![CatTree](http://s3-ap-northeast-1.amazonaws.com/kaeruspoon/images/110/large.JPG?1328342672)
## Usage
You can be used by simply installing.
CatTree notifies the result analyzing ActiveRecord objects. Look at the Rails log when Rails action finished.
+
+```
+Started GET "/top" for xxx.xxx.xxx.xxx at yyyy
+Processing by TopController#index as HTML
+ Parameters: {}
+ ....
+
+[CatTree]
+ ActiveRecord::Base: 102
+ Same objects:
+ User(id:12): 2
+
+Completed 200 OK in 1121.8ms (Views: 899.0ms | ActiveRecord: 222.8ms)
+```
+
+If you need backtrace of same objects,
+
+```ruby
+CatTree::Config.backtrace = true
+
+```
+
+then
```
Started GET "/top" for xxx.xxx.xxx.xxx at yyyy
Processing by TopController#index as HTML
Parameters: {}