lib/rack/insight/panels/memory_panel.rb in rack-insight-0.5.13 vs lib/rack/insight/panels/memory_panel.rb in rack-insight-0.5.14
- old
+ new
@@ -1,12 +1,8 @@
module Rack::Insight
class MemoryPanel < Panel
- def initialize(app)
- super
- table_setup("memory_records")
- end
def before(env)
@original_memory = `ps -o rss= -p #{$$}`.to_i
end
@@ -23,13 +19,9 @@
"#{record[:memory_increase]} KB Δ, #{record[:total_memory]} KB total"
end
def has_content?
false
- end
-
- def name
- "Memory"
end
end
end