class SidekiqUniqueJobs::Profiler
def self.stop
def self.stop finish = current_timestamp return unless (data = Thread.current[:_method_profiler]) Thread.current[:_method_profiler] = nil start = data.delete(:__start) data[:total_duration] = finish - start data end