> Also is it necessary to provide the write method separately?    I think so yes. In a case where what someone wants is to grab a snapshot on `process.on('exit')`, having the separate `writeHeapdump()` option that does not allocate and return a new object just to get the file serialized out is not ideal. I would bet that the typical case for the majority of users will be to just call `writeHeapdump()` and returning the object is wasteful.