adds the $memusage to the log