Defer profiler output (#11098)

Change-Id: Iadf5290175a18663329d9254eca57831236be7c8