code: def updateColumnWidths(tag, cw, options):
      
      longforms = {"med": "median",
                   "ave": "average",
                   "min": "min",
                   "total": "total",
                   "max": "max",}
      for category in ["time", "clock", "wait", "memory"]:
          if category in options.categories:
              for field in ["min", "med", "ave", "max", "total"]:
                  t = getattr(tag, "%s_%s" % (longforms[field], category))
                  if category in ["time", "clock", "wait"]:
                      s = reportTime(t, options,
                                     field=cw.getWidth(category, field)).strip()
                  else:
                      s = reportMemory(t, options,
                                       field=cw.getWidth(category, field), isBytes=True).strip()
                  if len(s) >= cw.getWidth(category, field):
                      # this string is larger than max, width must be increased
                      cw.setWidth(category, field, len(s) + 1)
docs: Update the column width attributes for this tag's fields.