perf(cmd/ipfs) write mprof file in debug mode

@jbenet quick addition to get helpfull mprofs in debug mode.