Class: RosettAi::Profiler::NullProfiler

Inherits:
Object
  • Object
show all
Defined in:
lib/rosett_ai/profiler.rb

Overview

No-op profiler when RAI_PROFILE is not set. Zero overhead — all methods are empty.

Instance Method Summary collapse

Instance Method Details

#measure(_phase_name) ⇒ Object



72
73
74
# File 'lib/rosett_ai/profiler.rb', line 72

def measure(_phase_name)
  yield
end

#reportObject



76
# File 'lib/rosett_ai/profiler.rb', line 76

def report; end