Class: JRubyProf::AbstractPrinter
- Inherits:
-
Object
- Object
- JRubyProf::AbstractPrinter
- Defined in:
- lib/jruby-prof/abstract_printer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#thread_set ⇒ Object
readonly
Returns the value of attribute thread_set.
Instance Method Summary collapse
-
#initialize(thread_set, options = {}) ⇒ AbstractPrinter
constructor
A new instance of AbstractPrinter.
- #print_to_file(filename) ⇒ Object
Constructor Details
#initialize(thread_set, options = {}) ⇒ AbstractPrinter
Returns a new instance of AbstractPrinter.
6 7 8 9 |
# File 'lib/jruby-prof/abstract_printer.rb', line 6 def initialize(thread_set, ={}) @thread_set = thread_set @options = end |
Instance Attribute Details
#thread_set ⇒ Object (readonly)
Returns the value of attribute thread_set.
4 5 6 |
# File 'lib/jruby-prof/abstract_printer.rb', line 4 def thread_set @thread_set end |
Instance Method Details
#print_to_file(filename) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/jruby-prof/abstract_printer.rb', line 11 def print_to_file(filename) puts "Dumping trace to #{File.(filename)}" File.open(filename, "w") do |f| print_on(f) end end |