Closed tijlleenders closed 2 hours ago
Not actually needed - it's built-in to some browsers:
Might still be useful to have this in the console log: Console Timing Use console.time() and console.timeEnd() to measure specific operations:
console.time('WASM Operation');
wasmModule.someOperation();
console.timeEnd('WASM Operation');
Custom Performance Markers Utilize the Performance API for more granular timing:
performance.mark('wasmStart');
await wasmModule.heavyComputation();
performance.mark('wasmEnd');
performance.measure('WASM Execution', 'wasmStart', 'wasmEnd');
In Firefox:
Is your feature request related to a problem? Please describe. It's very annoying when the scheduler takes a long time to calculate.
Describe the solution you'd like Console.log the total between:
Describe alternatives you've considered
Additional context None.