docs: def view_task_info(token, dstore):
      """
      Display statistical information about the tasks performance.
      It is possible to get full information about a specific task
      with a command like this one, for a classical calculation::
  
        $ oq show task_info:classical
      """
      args = token.split(':')[1:]  # called as task_info:task_name
      if args:
          [task] = args
          array = dstore['task_info/' + task].value
          rduration = array['duration'] / array['weight']
          data = util.compose_arrays(rduration, array, 'rduration')
          data.sort(order='duration')
          return rst_table(data)
  
      data = ['operation-duration mean stddev min max outputs'.split()]
      for task in dstore['task_info']:
          val = dstore['task_info/' + task]['duration']
          if len(val):
              data.append(stats(task, val))
      if len(data) == 1:
          return 'Not available'
      return rst_table(data)