stopMemoryUsageTracking function
void
stopMemoryUsageTracking()
Stops memory usage tracking if it is started by trackMemoryUsage.
Implementation
void stopMemoryUsageTracking() {
timer?.cancel();
timer = null;
autoSnapshotter = null;
usageEventCreator = null;
}