Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bullet_parser

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bullet_parser

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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

# Please specify the path of the .log file in the argument
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

FAQs

Package last updated on 15 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc