Class: PyaExtractor

Inherits:
Object
  • Object
show all
Includes:
Extractor
Defined in:
lib/batch_experiment/sample_extractors.rb

Instance Method Summary collapse

Methods included from Extractor

#extract, get_field, get_hfield

Instance Method Details

#extract_from_lines(lines) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/batch_experiment/sample_extractors.rb', line 41

def extract_from_lines(lines)
  values = ['Total Time ', 'ext_time', 'ext_mem'].map do | label |
    Extractor.get_field(lines, label)
  end
  opt_key = '#The optimal value for the given capacity'
  values << Extractor.get_hfield(lines, opt_key)
end

#namesObject



37
38
39
# File 'lib/batch_experiment/sample_extractors.rb', line 37

def names
  ['internal time', 'external time', 'external memory', 'opt']
end