grunt-aws-lambda
grunt-aws-lambda copied to clipboard
to know the memory ussage
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);
}
};