[XWALK-DRIVER] refactor heap snapshot taker