diff method

Implementation

EntityStatsSnapshot diff(EntityStatsSnapshot other) {
  return EntityStatsSnapshot(
    totalCreated: totalCreated - other.totalCreated,
    totalDestroyed: totalDestroyed - other.totalDestroyed,
    activeCount: activeCount - other.activeCount,
    recycledCount: recycledCount - other.recycledCount,
    peakCount: peakCount,
    creationQueueSize: creationQueueSize,
    deletionQueueSize: deletionQueueSize,
  );
}