lib/rack/insight/panels/templates_panel.rb in rack-insight-0.5.13 vs lib/rack/insight/panels/templates_panel.rb in rack-insight-0.5.14
- old
+ new
@@ -4,18 +4,10 @@
require "rack/insight/panels/templates_panel/rendering"
def initialize(app)
super
- probe(self) do
- instrument "ActionView::Template" do
- instance_probe :render
- end
- end
-
- table_setup("templates")
-
@current = nil
end
def request_start(env, start)
@@ -38,20 +30,15 @@
def after_detect(method_call, timing, args, result)
@current.timing = timing
@current = @current.parent
end
- def name
- "templates"
- end
-
def heading_for_request(number)
"Templates: %.2fms" % (retrieve(number).inject(0.0){|memo, rendering| memo + rendering.duration})
end
def content_for_request(number)
- result = render_template "panels/templates", :root_rendering => retrieve(number).first
- return result
+ render_template "panels/templates", :root_rendering => retrieve(number).first
end
end
end