middleman/middleman — pull request #543 by bhollis (2012-07-19 05:14:58+00:00)
Title: Support profiling server startup and build via a --profile flag

This should make it a bit easier to start figuring out performance issues. I'd like to also add profiling to individual requests but I haven't quite gotten the rack middleware for that working yet. In the meantime, you can get `ruby-prof` graphs of server startup or build in the `profile` directory by adding `--profile` to CLI invocations. This doesn't add `ruby-prof` as a hard dependency, it only requires it if you invoke profiling.

Note that unfortunately due to tanoku/redcarpet#144 you can't profile a project that uses Redcarpet.