[nodejs] Why not be recovered memory

2016-08-26 Thread Liujin Wu
var showMem = function(num) { var mem = process.memoryUsage(); var format = function(bytes) { return (bytes/1024/1024).toFixed(2)+'MB'; }; console.log('Process: heapTotal '+format(mem.heapTotal) + ' heapUsed ' + format(mem.heapUsed) + ' rss ' +

Re: [nodejs] extern variable from one addon to another addon

2016-08-26 Thread Ben Noordhuis
On Mon, Aug 22, 2016 at 4:59 PM, Dheeraj Singh wrote: > Hi Friends, > > I have created two addons, what is expected is to extern a variable from one > addon to another addon. > But when I extern the global variable declared in one addon to another. > In the addon where

Re: [nodejs] What does the property named "offset" (under class "Buffer") meaning?

2016-08-26 Thread Ben Noordhuis
On Tue, Aug 23, 2016 at 8:50 AM, Tom Fan wrote: > What does the property named "offset" (under class "Buffer") meaning? It's the offset into the parent buffer: buf.slice(1,1).offset === buf.offset + 1. -- Job board: http://jobs.nodejs.org/ New group rules: