# File lib/puppet/util/puppetdb.rb, line 101 def profile(message, metric_id, &block) message = "PuppetDB: " + message arity = Puppet::Util::Profiler.method(:profile).arity case arity when 1 Puppet::Util::Profiler.profile(message, &block) when 2, -2 Puppet::Util::Profiler.profile(message, metric_id, &block) end end