Save profiling data for tests if PROFILE is defined in environment variables