Class: BigBench::PostProcessor::Environment::Appearings

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

Overview

Lists the appearing attributes for a scope

Instance Attribute Summary collapse

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(scope = :all) ⇒ Appearings

Returns a new instance of Appearings.



390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
# File 'lib/bigbench/post_processor/environment.rb', line 390

def initialize scope = :all
  @methods, @statuses, @paths = [], [], []
  
  trackings.each do |tracking|
    next if !(tracking[:benchmark] == scope or scope == :all)
    
    # Add appearing attributes
    @methods  << tracking[:method]
    @statuses << tracking[:status]
    @paths    << tracking[:path]
  end
  
  # Unique attributes
  @methods.uniq!
  @statuses.uniq!
  @paths.uniq!
end

Instance Attribute Details

#methodsObject (readonly)

Returns the value of attribute methods.



386
387
388
# File 'lib/bigbench/post_processor/environment.rb', line 386

def methods
  @methods
end

#pathsObject (readonly)

Returns the value of attribute paths.



388
389
390
# File 'lib/bigbench/post_processor/environment.rb', line 388

def paths
  @paths
end

#statusesObject (readonly)

Returns the value of attribute statuses.



387
388
389
# File 'lib/bigbench/post_processor/environment.rb', line 387

def statuses
  @statuses
end