Method: Puppet::Util::Profiler::AroundProfiler#add_profiler

Defined in:
lib/puppet/util/profiler/around_profiler.rb

#add_profiler(profiler) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • profiler (#profile)

    A profiler for the current thread



29
30
31
32
# File 'lib/puppet/util/profiler/around_profiler.rb', line 29

def add_profiler(profiler)
  @profilers << profiler
  profiler
end