freeProfiling1() needs to be after endProfiling()