Class: TestProf::MemoryProf::Printer
- Inherits:
-
Object
- Object
- TestProf::MemoryProf::Printer
- Includes:
- Logging
- Defined in:
- lib/test_prof/memory_prof/printer.rb,
lib/test_prof/memory_prof/printer/number_to_human.rb
Direct Known Subclasses
Defined Under Namespace
Modules: NumberToHuman
Constant Summary
Constants included from Logging
Instance Method Summary collapse
-
#initialize(tracker) ⇒ Printer
constructor
A new instance of Printer.
- #print ⇒ Object
Methods included from Logging
Constructor Details
#initialize(tracker) ⇒ Printer
Returns a new instance of Printer.
12 13 14 |
# File 'lib/test_prof/memory_prof/printer.rb', line 12 def initialize(tracker) @tracker = tracker end |
Instance Method Details
#print ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/test_prof/memory_prof/printer.rb', line 16 def print = [ "MemoryProf results\n\n", print_total, print_block("groups", tracker.groups), print_block("examples", tracker.examples) ] log :info, .join end |