lib/rack/insight/panels/redis_panel/stats.rb in rack-insight-0.5.23 vs lib/rack/insight/panels/redis_panel/stats.rb in rack-insight-0.5.24

- old
+ new

@@ -6,14 +6,14 @@ include Rack::Insight::FilteredBacktrace attr_reader :time attr_reader :command - def initialize(time, command_args, backtrace) + def initialize(time, command_args, method_call) @time = time @command = command_args.inspect - @backtrace = backtrace + @backtrace = method_call.backtrace end def display_time "%.2fms" % time end @@ -26,11 +26,11 @@ @queries = [] @calls = 0 @time = 0.0 end - def record_call(time, command_args, backtrace) - @queries << Query.new(time, command_args, backtrace) + def record_call(time, command_args, method_call) + @queries << Query.new(time, command_args, method_call) @calls += 1 @time += time end def display_time