RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Measuring monkey-patching

Here’s a gist to measure the method bloat of requiring libraries by requiring them like so:

Bloat.measure { require 'activesupport' }

You’ll get a report of how many methods were added, broken down by whether they are class/instance methods.

Comments

Heh, that’s quite useful actually. What about a version which benchmark how long it takes to load the code too? And some graph of what loads what would be pretty cool!

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in