Method: Ccp::Receivers::Profileable#execute
- Defined in:
- lib/ccp/receivers/profileable.rb
#execute(cmd) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ccp/receivers/profileable.rb', line 17 def execute(cmd) start = Time.new super case cmd when Ccp::Commands::Composite # no profiles else profile = Profile.new(cmd, "execute", (Time.new - start).to_f) profiles << profile cmd.on_profiled(profile) if cmd.respond_to?(:on_profiled) end end |