Module: Polyphony::Trace
- Defined in:
- lib/polyphony/core/debug.rb
Overview
Trace provides tools for tracing the activity of the current thread's backend.
Class Method Summary collapse
-
.start_event_firehose(io = nil) {|Hash| ... } ⇒ Object
Starts tracing, emitting events converted to hashes to the given block.
Class Method Details
.start_event_firehose(io = nil) {|Hash| ... } ⇒ Object
Starts tracing, emitting events converted to hashes to the given block. If an IO instance is given, events are dumped to it instead.
32 33 34 |
# File 'lib/polyphony/core/debug.rb', line 32 def start_event_firehose(io = nil, &block) Thread.backend.trace_proc = firehose_proc(io, block) end |