I tried to figure out a memory leak issue in Phantom.js / Casper.js script and found this link
Detect node.js/javascript memory leak in code
The idea is to include heapdump module
https://github.com/bnoordhuis/node-heapdump
But when I run casperjs myapp.js
and it gave error that it cannot find this heapdump lib even though I installed it.
var heapdump = require('heapdump');
Is casperjs different from nodejs?