* Processes the provided label. * @param {string=} label label
(label)
| 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. |