MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / statString

Function statString

lib/cache/base.ts:71–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 }
70
71 statString(): string {
72 const pc = this.gets ? (100 * this.hits) / this.gets : 0;
73 const misses = this.gets - this.hits;
74 return `${this.puts} puts; ${this.gets} gets, ${this.hits} hits, ${misses} misses (${pc.toFixed(2)}%)`;
75 }
76
77 report(): void {
78 logger.info(`${this.cacheName} ${this.details}: cache stats: ${this.statString()}`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected