decord/source/__polyfill/14xxx/module_14422.js
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

43 lines
1.1 KiB
JavaScript

// Module ID: 14422
// Function ID: 14423
// Dependencies: []
// Module 14422
arg5.default = () => (startTimer) => {
closure_0 = startTimer;
startTimer = startTimer.startTimer;
const features = {
benchmark(title) {
closure_0 = title;
const items = [];
closure_2 = items();
function step(title) {
let arr = items;
let num = 0;
if (0 !== items.length) {
num = arr[arr.length - 1].time;
}
const tmp = callback();
arr = arr.push({ title, time: tmp, delta: tmp - num });
}
items.push({ title, time: 0, delta: 0 });
function stop(title) {
if (typeof step !== "function") {
HermesBuiltin.throwTypeError();
}
let arr = items;
let num = 0;
if (0 !== items.length) {
num = arr[arr.length - 1].time;
}
const tmp = callback();
let obj = { title, time: tmp, delta: tmp - num };
arr = arr.push(obj);
obj = { title, steps: arr };
title.send("benchmark.report", obj);
}
return { step, stop, last: stop };
}
};
return { features };
};