Expose vips internal cache settings and status

This commit is contained in:
Lovell Fuller
2014-02-25 23:31:33 +00:00
parent ae9a8b0f57
commit d5d85a8697
6 changed files with 44 additions and 3 deletions

View File

@@ -26,4 +26,6 @@ async.mapSeries([1, 1, 2, 4, 8, 16, 32, 64, 128], function(parallelism, next) {
next();
}
);
}, function() {});
}, function() {
console.dir(sharp.cache());
});

View File

@@ -420,4 +420,5 @@ async.series({
Object.keys(results).forEach(function(format) {
assert.strictEqual("sharp", results[format].toString().substr(0, 5), "sharp was slower than " + results[format] + " for " + format);
});
console.dir(sharp.cache());
});