Class: TraceViz::Core::Tracer

Inherits:
Object
  • Object
show all
Defined in:
lib/trace_viz/core/tracer.rb

Instance Method Summary collapse

Instance Method Details

#trace(**options, &block) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/trace_viz/core/tracer.rb', line 12

def trace(**options, &block)
  Defaults::Themes.apply_solarized_theme

  Context::Manager.with_contexts(config: options, tracking: {}) do
    adapter = Adapters::TracePointAdapter.new
    adapter.trace(&block)
  end
end