Class: Insight::RedisPanel::Stats::Query
- Inherits:
-
Object
- Object
- Insight::RedisPanel::Stats::Query
- Includes:
- FilteredBacktrace
- Defined in:
- lib/insight/panels/redis_panel/stats.rb
Instance Attribute Summary (collapse)
-
- (Object) command
readonly
Returns the value of attribute command.
-
- (Object) time
readonly
Returns the value of attribute time.
Instance Method Summary (collapse)
- - (Object) display_time
-
- (Query) initialize(time, command_args, backtrace)
constructor
A new instance of Query.
Methods included from FilteredBacktrace
#backtrace, backtrace_regexp, #filtered_backtrace, #has_backtrace?, root_for_backtrace_filtering
Constructor Details
- (Query) initialize(time, command_args, backtrace)
A new instance of Query
11 12 13 14 15 |
# File 'lib/insight/panels/redis_panel/stats.rb', line 11 def initialize(time, command_args, backtrace) @time = time @command = command_args.inspect @backtrace = backtrace end |
Instance Attribute Details
- (Object) command (readonly)
Returns the value of attribute command
9 10 11 |
# File 'lib/insight/panels/redis_panel/stats.rb', line 9 def command @command end |
- (Object) time (readonly)
Returns the value of attribute time
8 9 10 |
# File 'lib/insight/panels/redis_panel/stats.rb', line 8 def time @time end |
Instance Method Details
- (Object) display_time
17 18 19 |
# File 'lib/insight/panels/redis_panel/stats.rb', line 17 def display_time "%.2fms" % time end |