clearHistory method

void clearHistory()

Clear event and snapshot retention without altering the current graph.

Implementation

void clearHistory() {
  if (isDisposed) return;
  _history.clear();
  _historySizes.clear();
  _retainedEventBytes = 0;
  _retainedSnapshots.clear();
  _retainedSnapshotBytes = 0;
  _clearedThroughSnapshotCursor = _latestSnapshotCursor;
  _importCandidate = null;
}