Class: GroongaQueryLog::Command::CheckPerformanceRegression::OperationStatistic
- Inherits:
-
Statistic
- Object
- Statistic
- GroongaQueryLog::Command::CheckPerformanceRegression::OperationStatistic
- Defined in:
- lib/groonga-query-log/command/check-performance-regression.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
Instance Method Summary collapse
- #context ⇒ Object
-
#initialize(operation, index, old, new, threshold) ⇒ OperationStatistic
constructor
A new instance of OperationStatistic.
- #name ⇒ Object
- #slow? ⇒ Boolean
Methods inherited from Statistic
#diff_elapsed_time, #new_elapsed_time, #old_elapsed_time, #ratio
Constructor Details
#initialize(operation, index, old, new, threshold) ⇒ OperationStatistic
Returns a new instance of OperationStatistic.
253 254 255 256 257 |
# File 'lib/groonga-query-log/command/check-performance-regression.rb', line 253 def initialize(operation, index, old, new, threshold) super(old, new, threshold) @operation = operation @index = index end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
252 253 254 |
# File 'lib/groonga-query-log/command/check-performance-regression.rb', line 252 def index @index end |
Instance Method Details
#context ⇒ Object
263 264 265 |
# File 'lib/groonga-query-log/command/check-performance-regression.rb', line 263 def context @operation[:context] end |
#name ⇒ Object
259 260 261 |
# File 'lib/groonga-query-log/command/check-performance-regression.rb', line 259 def name @operation[:name] end |
#slow? ⇒ Boolean
267 268 269 |
# File 'lib/groonga-query-log/command/check-performance-regression.rb', line 267 def slow? @threshold.slow_operation?(diff_elapsed_time, ratio) end |