grunt-aws-lambda icon indicating copy to clipboard operation
grunt-aws-lambda copied to clipboard

to know the memory ussage

Open jagedn opened this issue 9 years ago • 0 comments

It would be great to know how much memory has been used during the lambda_invokation process.

changing the callback function to something similar would be enought

var context = { done: function (status, message) { var success = status === null; grunt.log.writeln(""); grunt.log.writeln("Message"); grunt.log.writeln("-------"); grunt.log.writeln(message); grunt.log.writeln("");

            grunt.log.writeln("Memory usage");
            grunt.log.writeln("-------");
            grunt.log.writeln(util.inspect(process.memoryUsage()));
            done(success);
        }
    };

jagedn avatar May 21 '15 12:05 jagedn