class Memtf::Runner
Encapsulates the multiple steps required to accomplish Memtf
analysis and reporting.
Attributes
group[R]
options[R]
report[R]
Public Class Methods
new(options={})
click to toggle source
# File lib/memtf/runner.rb, line 14 def initialize(options={}) @group = options.delete(:group) || Time.now.to_i @options = options end
run(stage, options={})
click to toggle source
Run the Memtf
analysis and reporting.
@param [String] stage @param [Hash] options
# File lib/memtf/runner.rb, line 10 def self.run(stage, options={}) new(options).run(stage) end
Public Instance Methods
run(stage)
click to toggle source
Run the Memtf
analysis and reporting.
@param [String] stage @return [Memtf::Runner]
# File lib/memtf/runner.rb, line 23 def run(stage) analysis = Memtf::Analyzer.analyze(options) Memtf::Persistance.save(stage, group, analysis) analysis = nil if stage == Memtf::STOP @report = Memtf::Reporter.report(group) puts @report end self end