MCPcopy
hub / github.com/webpack/webpack / getContentStats

Method getContentStats

lib/cache/PackFileCacheStrategy.js:239–252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237 }
238
239 getContentStats() {
240 let count = 0;
241 let size = 0;
242 for (const content of this.content) {
243 if (content !== undefined) {
244 count++;
245 const s = content.getSize();
246 if (s > 0) {
247 size += s;
248 }
249 }
250 }
251 return { count, size };
252 }
253
254 /**
255 * Returns new location of data entries.

Callers 1

afterAllStoredMethod · 0.80

Calls 1

getSizeMethod · 0.45

Tested by

no test coverage detected