use temporary dir for profiling