MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / reportPerformance

Function reportPerformance

src/tstl.ts:211–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209}
210
211function reportPerformance() {
212 if (performance.isMeasurementEnabled()) {
213 console.log("Performance measurements: ");
214 performance.forEachMeasure((name, duration) => {
215 console.log(` ${name}: ${duration.toFixed(2)}ms`);
216 });
217 console.log(`Total: ${performance.getTotalDuration().toFixed(2)}ms`);
218 performance.disableMeasurement();
219 }
220}
221
222function checkNodeVersion(): void {
223 const [major, minor] = process.version.slice(1).split(".").map(Number);

Callers 2

performCompilationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected