NXIO-332 Allow to write cpuProfile to a file