Permalink
Browse files

do

  • Loading branch information...
1 parent cb0d90b commit 19e51d2807147ee89b1b92a888b04e1f6ea19053 @bogdan committed May 7, 2012
@@ -16,7 +16,7 @@ They are fit well for cases when optimization stays at Ruby level and doesn't re
General flow on how to tackle performance is clear:
-* [perftools.rb](https://github.com/tmm1/perftools.rb) shows slow method calls in a nice call tree format.
+* [perftools.rb](https://github.com/tmm1/perftools.rb) shows slow method calls in a nice call graph format.
* [Benchmark](http://ruby-doc.org/stdlib-1.9.2/libdoc/benchmark/rdoc/Benchmark.html) proves that we made an improvement.
Perftools does all the hard work for you.
@@ -34,9 +34,13 @@ Run test and open result:
$IMAGE_VIEWER /tmp/profile_result.gif
-Example output: [Rails route generator call tree](http://postimage.org/image/fy4fxhzvr/).
+Example output: **Rails route generator call graph**
-Here is short instruction how to read call tree:
+<a href="http://postimage.org/image/fy4fxhzvr/full/">
+ <img src="/images/perf_sample.gif" width="600px"/>
+</a>
+
+Here is short instruction how to read call graph:
Each block represents a method that was called. Percentage in a block shows how much time was spend in current method with and without all it's nested calls comparing to overall time. Arrow with number shows how many times parent method called it's children method.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 19e51d2

Please sign in to comment.