Better cache stats

dev/git-series/gccdum
Matt Godbolt 8 years ago
parent fe794092c6
commit 29c87d4f52

@ -330,7 +330,9 @@ Compile.prototype.checkSource = function (source) {
};
Compile.prototype.cacheStats = function () {
console.log("Cache stats: " + this.cacheHits + " hits, " + this.cacheMisses + " misses");
var pc = (100 * this.cacheHits) / (this.cacheMisses + this.cacheMisses);
console.log("Cache stats: " + this.cacheHits + " hits, " + this.cacheMisses + " misses (" + pc.toString(2) +
"%), LRU has " + this.cache.itemCount + " item(s) totalling " + this.cache.length + " bytes");
};
function compileHandler(compilers) {

Loading…
Cancel
Save