First pass at profiler hooks in sgen.