dump profiling to a tmp file at first and then rename
to a regular name in an atom file operation so that it
can copied safely.