Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
padrino-perf: watch out for problematic conditions in your app #1027
First of all: this is alpha, ugly and just a proof of concept that I wanted to show you.
This adds a small binary that allows to watch for know error conditions
Currently implemented is suite to detect json and yajl being loaded at the same time and tracking who loaded it.
Also, there is a horrible hack to ensure that load_paths added by padrino-perf are always in front of the
To try a sample run: add
This is basically a nice alias for:
where $ruby is the ruby that called padrino-perf.
Its not really there yet and the implementation is very straigth-forward and generalized, but the technique can be used to built suites that track memory consumption during loading etc.
Its main strength is that it is not a library that you have to put in your Gemfile, but instead 'just' an extended Runtime.
I think it's a great start! Thanks @skade!.. I reckon that the community will be happy to see that we're looking after performance so much that we even have a performance analyser tool! :) In which direction do you see this growing? I've found a really good presentation that may help towards getting ideas of what we can include in a performance analyser too.
added a commit
this pull request
Jan 30, 2013
I have used rack-mini-profiler in the past with padrino. It's quite useful and easy to use.