metricfu / metric_fu

A fist full of code metrics
http://metricfu.github.com/metric_fu
MIT License
627 stars 96 forks source link

Memory usage is too high #267

Open vraravam opened 9 years ago

vraravam commented 9 years ago

I am using the derailed_benchmarks gem and found that metric_fu takes up 42.3984 MiB of memory (even rails only takes 17.6953 MiB in my setup)! The command I ran to get the output was: bundle exec derailed bundle:mem development

Could you please run this against a sample app, and prune some memory hotspots?

bf4 commented 9 years ago

would love to do it with some help :) Great job on using that lib! That said, is metric_fu in your gemfile? If so, just require: false and bundle binstub metric_fu ... I recommend not including it in your Gemfile

vraravam commented 9 years ago

that worked like a charm! Could you please update the docs so that others can also benefit? All I did was the require: false and run the metric_fu executable from the command line (without the binstub). And thanks for replying so soon! :+1:

bf4 commented 9 years ago

No problem. That likely worked without the binstub because you either used bundle exec, are using rvm, or have it installed externally..

I'd really appreciate the PR, and spread kinda thing right now