Make phiprof into a class.