def stats_command(opts)
      CommandIO.instance.reply(opts[:conn], JSON.dump(@agent_manager.stats({:reset => opts[:reset]})))
    end
def stats_command(opts)
      CommandIO.instance.reply(opts[:conn], JSON.dump(@agent_manager.stats({:reset => opts[:reset]})))
    end
Stats command

 === Parameters
 opts[:conn](EM::Connection):: Connection used to send reply
 opts[:reset](Boolean):: Whether to reset stats

 === Return
 true:: Always return true