class Ccp::Receivers::Profileable::Profile
Public Instance Methods
name()
click to toggle source
# File lib/ccp/receivers/profileable.rb, line 8 def name target.is_a?(Class) ? "#{target.name}.#{method}" : "#{target.class}##{method}" end
profile(total)
click to toggle source
# File lib/ccp/receivers/profileable.rb, line 12 def profile(total) "[%4.1f%%] %.7f %s" % [(time*100/total), time, name] end