Class: Benchcc::CompilationResult
- Inherits:
-
Struct
- Object
- Struct
- Benchcc::CompilationResult
- Defined in:
- lib/benchcc/compiler.rb
Overview
Structure holding various information about the compilation of a file.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#command_line ⇒ Object
Returns the value of attribute command_line.
-
#peak_memusg ⇒ Object
Returns the value of attribute peak_memusg.
-
#stderr ⇒ Object
Returns the value of attribute stderr.
-
#stdout ⇒ Object
Returns the value of attribute stdout.
-
#wall_time ⇒ Object
Returns the value of attribute wall_time.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
11 12 13 |
# File 'lib/benchcc/compiler.rb', line 11 def code @code end |
#command_line ⇒ Object
Returns the value of attribute command_line
11 12 13 |
# File 'lib/benchcc/compiler.rb', line 11 def command_line @command_line end |
#peak_memusg ⇒ Object
Returns the value of attribute peak_memusg
11 12 13 |
# File 'lib/benchcc/compiler.rb', line 11 def peak_memusg @peak_memusg end |
#stderr ⇒ Object
Returns the value of attribute stderr
11 12 13 |
# File 'lib/benchcc/compiler.rb', line 11 def stderr @stderr end |
#stdout ⇒ Object
Returns the value of attribute stdout
11 12 13 |
# File 'lib/benchcc/compiler.rb', line 11 def stdout @stdout end |
#wall_time ⇒ Object
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_s ⇒ Object
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 |