docs: public synchronized void clearMemory() {
      Collection<TraceObject> traceObjects = values();
      for (TraceObject traceObject : traceObjects) {
        traceObject.remove();
      }
      this.clear();
    }