Class: BigBench::PostProcessor::Environment::AttributeCluster

Inherits:
Object
  • Object
show all
Includes:
BigBench::PostProcessor::Environment
Defined in:
lib/bigbench/post_processor/environment.rb

Overview

Creates attribute clusters for all available attributes

Instance Method Summary collapse

Methods included from BigBench::PostProcessor::Environment

#appearing, #cluster, #each_benchmark, #each_tracking, #normal_distribution, #polynomial_regression, reset!, #scope, #scope_to_benchmark, #statistics, #trackings

Constructor Details

#initialize(klass, options = {}) ⇒ AttributeCluster

Returns a new instance of AttributeCluster.



480
481
482
483
484
485
486
487
488
489
490
# File 'lib/bigbench/post_processor/environment.rb', line 480

def initialize klass, options = {}
  @options = { :degree => 0, :timebase => 1.second, :scope => :all }.merge(options)
  @degree, @klass, @cluster = @options[:degree], klass, cluster(@options[:timebase], @options[:scope])
  
  cluster_attribute :durations
  cluster_attribute :requests
  cluster_attribute_with_options :methods
  cluster_attribute_with_options :statuses
  cluster_attribute_with_options :paths
  cluster_attribute_with_options :benchmarks
end