code: def cmd_line(line, ctrl):
      server = ctrl.modules[0]
      
      if line == "statistic start":
          server.stat_gather = True
      elif line == "statistic stop":
          server.stat_gather = False
      elif line == "statistic reset":
          server.statistic_reset()
      elif line == "statistic":
          server.info(u"Statistic: \n{}".format(server.statistic()))
      return line
docs: :type : StartServer