Files: e9d9dec1d00ff365112ca0f981bbda15e3682528 / test / test-79-npm / heapdump / heapdump.js
305 bytesRaw
1 | ; |
2 | |
3 | var fs = require('fs'); |
4 | var heapdump = require('heapdump'); |
5 | var name = './heapdump.heapsnapshot'; |
6 | heapdump.writeSnapshot(name, function (error1, filename) { |
7 | if (error1) throw error1; |
8 | fs.unlink(filename, function (error2) { |
9 | if (error2) throw error2; |
10 | console.log('ok'); |
11 | }); |
12 | }); |
13 |
Built with git-ssb-web