lib/ruby-prof/assets/graph_printer.html.erb in ruby-prof-1.1.0 vs lib/ruby-prof/assets/graph_printer.html.erb in ruby-prof-1.2.0

- old
+ new

@@ -215,27 +215,26 @@ next if total_percentage < min_percent next if min_time && method.total_time < min_time self_percentage = (method.self_time/total_time) * 100 %> <!-- Parents --> - <% for caller in method.callers.sort - next if method.root? + <% for caller in method.call_trees.callers.sort next if min_time && caller.total_time < min_time %> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><%= sprintf("%.2f", caller.total_time) %></td> <td><%= sprintf("%.2f", caller.self_time) %></td> <td><%= sprintf("%.2f", caller.wait_time) %></td> <td><%= sprintf("%.2f", caller.children_time) %></td> <td><%= "#{caller.called}/#{method.called}" %></td> - <td class="method_name"><%= create_link(thread, total_time, caller.parent) %></td> + <td class="method_name"><%= create_link(thread, total_time, caller.parent.target) %></td> <% if @result.track_allocations? %> <td>-</td> <% end %> - <td><%= if caller.parent.source_file - file_link(caller.parent.source_file, caller.line) + <td><%= if caller.parent.target.source_file + file_link(caller.parent.target.source_file, caller.line) end %></td> </tr> <% end %> <tr class="method"> <td><%= sprintf("%.2f%%", total_percentage) %></td> @@ -291,10 +290,10 @@ </td> </tr> <% end %> <!-- Children --> - <% for callee in method.callees.sort_by(&:total_time).reverse + <% for callee in method.call_trees.callees.sort_by(&:total_time).reverse next if min_time && callee.total_time < min_time %> <tr> <td>&nbsp;</td> <td>&nbsp;</td> <td><%= sprintf("%.2f", callee.total_time) %></td>