code: function clear (entry) {
      var type = entry.entryType
      if (type === 'measure') window.performance.clearMeasures(entry.name)
      else if (type === 'resource') window.performance.clearResourceTimings()
    }
docs: Navigation, longtask and frame don't have a clear method (yet) Resource timings can only be cleared in bulk see: https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMeasures