tried to hook up profiler api on the generator but maybe I'm doing it wrong?