MCPcopy
hub / github.com/webpack/tapable / getOrCreateMeta

Function getOrCreateMeta

benchmark/with-codspeed.mjs:71–78  ·  view source on GitHub ↗

* @param {Bench} bench * @returns {Map }

(bench)

Source from the content-addressed store, hash-verified

69 * @returns {Map<string, TaskMeta>}
70 */
71function getOrCreateMeta(bench) {
72 let m = metaMap.get(bench);
73 if (!m) {
74 m = new Map();
75 metaMap.set(bench, m);
76 }
77 return m;
78}
79
80/**
81 * Wrap a tinybench Bench so that CodSpeed simulation mode instruments each

Callers 1

withCodSpeedFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…