Forgot this part
This commit is contained in:
parent
bfd959f45e
commit
19212ced62
1 changed files with 2 additions and 2 deletions
|
@ -305,12 +305,12 @@ const BENCHES = new Map();
|
||||||
window.__BENCH_RESULTS = new Map();
|
window.__BENCH_RESULTS = new Map();
|
||||||
window.__BENCHMARK = {
|
window.__BENCHMARK = {
|
||||||
start(name) {
|
start(name) {
|
||||||
if (!import.meta.env.DEV) return;
|
if (!import.meta.env.DEV && !import.meta.env.PHANPY_DEV) return;
|
||||||
const start = performance.now();
|
const start = performance.now();
|
||||||
BENCHES.set(name, start);
|
BENCHES.set(name, start);
|
||||||
},
|
},
|
||||||
end(name) {
|
end(name) {
|
||||||
if (!import.meta.env.DEV) return;
|
if (!import.meta.env.DEV && !import.meta.env.PHANPY_DEV) return;
|
||||||
const start = BENCHES.get(name);
|
const start = BENCHES.get(name);
|
||||||
if (start) {
|
if (start) {
|
||||||
const end = performance.now();
|
const end = performance.now();
|
||||||
|
|
Loading…
Add table
Reference in a new issue