Class: Benchcc::CompilationResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/benchcc/compiler.rb

Overview

Structure holding various information about the compilation of a file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code



11
12
13
# File 'lib/benchcc/compiler.rb', line 11

def code
  @code
end

#command_lineObject

Returns the value of attribute command_line



11
12
13
# File 'lib/benchcc/compiler.rb', line 11

def command_line
  @command_line
end

#peak_memusgObject

Returns the value of attribute peak_memusg



11
12
13
# File 'lib/benchcc/compiler.rb', line 11

def peak_memusg
  @peak_memusg
end

#stderrObject

Returns the value of attribute stderr



11
12
13
# File 'lib/benchcc/compiler.rb', line 11

def stderr
  @stderr
end

#stdoutObject

Returns the value of attribute stdout



11
12
13
# File 'lib/benchcc/compiler.rb', line 11

def stdout
  @stdout
end

#wall_timeObject

Returns the value of attribute wall_time



11
12
13
# File 'lib/benchcc/compiler.rb', line 11

def wall_time
  @wall_time
end

Instance Method Details

#to_sObject



25
26
27
28
29
30
31
32
33
34
# File 'lib/benchcc/compiler.rb', line 25

def to_s
  "> \#{command_line}\n\#{stderr}\n\n[compiling:\n\#{code}\n]\n"
end