def METHOD_NAME(self):
    # Time how long flushing data takes.
    self._last_flush_time = time.time()
    self.serialize(self._prefix + ".log")
    self._last_flush_runtime = time.time() - self._last_flush_time
    self._flush_log_time += self._last_flush_runtime
    self._steps_notflushed_write = 0