MCPcopy
hub / github.com/livebud/bud / start

Method start

package/svelte/compiler.js:77–88  ·  view source on GitHub ↗
(label)

Source from the content-addressed store, hash-verified

75 this.current_children = this.timings = [];
76 }
77 start(label) {
78 const timing = {
79 label,
80 start: now(),
81 end: null,
82 children: []
83 };
84 this.current_children.push(timing);
85 this.stack.push(timing);
86 this.current_timing = timing;
87 this.current_children = timing.children;
88 }
89 stop(label) {
90 if (label !== this.current_timing.label) {
91 throw new Error(`Mismatched timing labels (expected ${this.current_timing.label}, got ${label})`);

Callers 1

compileFunction · 0.80

Calls 2

pushMethod · 0.80
nowFunction · 0.70

Tested by

no test coverage detected