MCPcopy
hub / github.com/rollup/rollup / printTimings

Function printTimings

cli/run/timings.ts:5–12  ·  view source on GitHub ↗
(timings: SerializedTimings)

Source from the content-addressed store, hash-verified

3import { bold, underline } from '../../src/utils/colors';
4
5export function printTimings(timings: SerializedTimings): void {
6 for (const [label, [time, memory, total]] of Object.entries(timings)) {
7 const appliedColor =
8 label[0] === '#' ? (label[1] === '#' ? bold : underline) : (text: string) => text;
9 const row = `${label}: ${time.toFixed(0)}ms, ${prettyBytes(memory)} / ${prettyBytes(total)}`;
10 console.info(appliedColor(row));
11 }
12}

Callers 2

startFunction · 0.90
buildFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…