decord/source/modules/systrace/native/installSystrace.tsx
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

79 lines
2.1 KiB
TypeScript

// Module ID: 14394
// Function ID: 14395
// Name: installSystrace
// Dependencies: [17, 1115, 14395, 2]
// Exports: installSystrace
// Module 14394 (installSystrace)
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
const Systrace = get_ActivityIndicator.Systrace;
const result = set.fileFinishedImporting("modules/systrace/native/installSystrace.tsx");
export const installSystrace = function installSystrace() {
if (obj.isAndroid()) {
Systrace.isEnabled = () => {
const _default = callback(14395).default;
let flag;
if (_default != null) {
flag = _default.isEnabled();
}
if (flag == null) {
flag = false;
}
return flag;
};
Systrace.beginEvent = (fn) => {
const _default = callback(14395).default;
if (_default != null) {
let tmp2 = fn;
if (typeof fn !== "string") {
tmp2 = fn();
}
_default.beginEvent(tmp2);
}
};
Systrace.endEvent = () => {
const _default = callback(14395).default;
if (_default != null) {
_default.endEvent();
}
};
Systrace.beginAsyncEvent = (fn) => {
const _default = callback(14395).default;
let num;
if (_default != null) {
let tmp2 = fn;
if (typeof fn !== "string") {
tmp2 = fn();
}
num = _default.beginAsyncEvent(tmp2);
}
if (num == null) {
num = 0;
}
return num;
};
Systrace.endAsyncEvent = (fn) => {
const _default = callback(14395).default;
if (_default != null) {
let tmp2 = fn;
if (typeof fn !== "string") {
tmp2 = fn();
}
_default.endAsyncEvent(tmp2, arg1);
}
};
Systrace.counterEvent = (pending_js_to_native_queue, length) => {
const _default = callback(14395).default;
if (_default != null) {
let tmp2 = pending_js_to_native_queue;
if (typeof pending_js_to_native_queue !== "string") {
tmp2 = pending_js_to_native_queue();
}
_default.counterEvent(tmp2, length);
}
};
}
};