test profiler with generated code. dump profile information using toString as dump() no longer available.