MCPcopy
hub / github.com/webpack/webpack / timeEnd

Method timeEnd

lib/logging/Logger.js:186–195  ·  view source on GitHub ↗

* Processes the provided label. * @param {string=} label label

(label)

Source from the content-addressed store, hash-verified

184 * @param {string=} label label
185 */
186 timeEnd(label) {
187 const prev = this[TIMERS_SYMBOL] && this[TIMERS_SYMBOL].get(label);
188 if (!prev) {
189 throw new Error(`No such label '${label}' for WebpackLogger.timeEnd()`);
190 }
191 const time = process.hrtime(prev);
192 /** @type {TimersMap} */
193 (this[TIMERS_SYMBOL]).delete(label);
194 this[LOG_SYMBOL](LogType.time, [label, ...time]);
195 }
196
197 /**
198 * Processes the provided label.

Callers 15

onCompiledMethod · 0.80
_doneMethod · 0.80
finalCallbackMethod · 0.80
visitModulesFunction · 0.80
buildChunkGraphFunction · 0.80
finishMethod · 0.80
sealMethod · 0.80
contMethod · 0.80
createHashMethod · 0.80
finalCallbackMethod · 0.80
onCompiledMethod · 0.80

Calls 2

getMethod · 0.45
deleteMethod · 0.45

Tested by 1

applyMethod · 0.64