BulletParser
The bullet is a gem designed to parse and tokenize the output .log files generated by it. Based on my experience, I often review the contents of the bullet.log file produced by Bullet in order to validate instances of the "N+1 problem".
As parsing and identifying duplicate occurrences within the typical .log format can be challenging, I created this gem to facilitate conversion into a customizable format.
Installation
Add this line to your application's Gemfile:
gem 'bullet_parser'
And then execute:
$ bundle
Usage
Parse "bullet.log" file to tokens
tokens = BulletParser.tokens('bullet.log')
Save parsed tokens as File(:csv)
tokens = BulletParser.tokens('bullet.log')
BulletParser.save(tokens, extension: :csv, filename: 'bullet_log.csv')
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/okabe-yuya/bullet_parser