Track the load progress of your Bundler-based projects
Ruby
Latest commit 1a6670e Jul 22, 2016 @grosser grosser committed on GitHub Merge pull request #14 from mokhan/patch-1
Fix typo in README.
Failed to load latest commit information.
bin re-add load path for initializer usage Jan 30, 2014
lib v0.3.2 May 8, 2016
test configure threshold Jan 25, 2014
.gitignore Initial commit Apr 21, 2011
Gemfile add bump Jan 30, 2014
MIT-LICENSE.md License proper, too Jan 25, 2014
README.md Fix typo in README. Jul 22, 2016
Rakefile add bump Jan 31, 2014
bumbler.gemspec add bump Jan 31, 2014

README.md

Bumbler

Why stare blankly at your terminal window when you can clutter it up with awesome progress bars?

Use Bumbler to track the load progress of your Bundler-based projects! Maybe you'll find a slow gem or two.

gem install bumbler

Simple

cd rails-project && bumbler

Detailed usage for non-Rails projects

Step 1:

Add bumbler to your Gemfile if you want to use bundle exec

gem 'bumbler'

Step 2:

Add the following to your .profile, .bash_profile, .zshrc, .wtfrc or whatever shell config you use

export RUBYOPT=-rbumbler/go

Step 3:

Restart your terminal

Blammo, you're bumbling with bundler and bumbler!

Run a Bundler-based command, and you should see a spiffy progress bar, such as:

> rails c
[#########                                                                     ]
( 7/59)  492.04ms loaded data_mapper
> Bumbler::Stats.all_slow_items  #will show you the gems which load the slowest.

And then maybe you'll also want to contribute some patches to make your favorite gems load faster.

Bonus features

Custom threshold

Set the mininum number of miliseconds before something slow is listed. For example, to show anything >= 10ms:

bumbler -t 10

Track load-time of Rails initializers

See how slow your app's initializers are (./config/initializers/*), as well as the initializers for any engines you rely on.

bumbler --initializers

License

Bumbler is MIT licensed. See the accompanying file for the full text.