Forgot this part

pull/758/head
Lim Chee Aun 2024-09-08 19:58:14 +08:00
rodzic bfd959f45e
commit 19212ced62
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -305,12 +305,12 @@ const BENCHES = new Map();
window.__BENCH_RESULTS = new Map();
window.__BENCHMARK = {
start(name) {
if (!import.meta.env.DEV) return;
if (!import.meta.env.DEV && !import.meta.env.PHANPY_DEV) return;
const start = performance.now();
BENCHES.set(name, start);
},
end(name) {
if (!import.meta.env.DEV) return;
if (!import.meta.env.DEV && !import.meta.env.PHANPY_DEV) return;
const start = BENCHES.get(name);
if (start) {
const end = performance.now();