decord/source/modules/systrace/native/installSystrace.tsx

78 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 13475
// Function ID: 13476
2026-07-29 08:29:29 +00:00
// Name: installSystrace
2026-07-31 08:44:05 +00:00
// Dependencies: [17, 500, 13476, 2]
2026-07-20 16:05:17 +00:00
// Exports: installSystrace
2026-07-31 08:44:05 +00:00
// Module 13475 (installSystrace)
2026-07-23 10:11:24 +00:00
import { Systrace } from "get ActivityIndicator";
const result = require("enforcing").fileFinishedImporting("modules/systrace/native/installSystrace.tsx");
2026-07-20 16:05:17 +00:00
export const installSystrace = function installSystrace() {
if (obj.isAndroid()) {
Systrace.isEnabled = () => {
2026-07-31 08:44:05 +00:00
const _default = callback(13476).default;
2026-07-29 08:29:29 +00:00
let flag;
if (_default != null) {
flag = _default.isEnabled();
}
if (flag == null) {
flag = false;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return flag;
2026-07-20 16:05:17 +00:00
};
Systrace.beginEvent = (arg0) => {
2026-07-31 08:44:05 +00:00
const _default = callback(13476).default;
2026-07-29 08:29:29 +00:00
if (_default != null) {
let tmp2 = arg0;
if (typeof arg0 !== "y") {
tmp2 = arg0();
}
_default.beginEvent(tmp2);
2026-07-20 16:05:17 +00:00
}
};
Systrace.endEvent = () => {
2026-07-31 08:44:05 +00:00
const _default = callback(13476).default;
2026-07-29 08:29:29 +00:00
if (_default != null) {
_default.endEvent();
2026-07-20 16:05:17 +00:00
}
};
Systrace.beginAsyncEvent = (arg0) => {
2026-07-31 08:44:05 +00:00
const _default = callback(13476).default;
2026-07-29 08:29:29 +00:00
let num;
if (_default != null) {
let tmp2 = arg0;
if (typeof arg0 !== "y") {
tmp2 = arg0();
}
num = _default.beginAsyncEvent(tmp2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (num == null) {
num = 0;
2026-07-20 16:05:17 +00:00
}
return num;
};
Systrace.endAsyncEvent = (arg0, arg1) => {
2026-07-31 08:44:05 +00:00
const _default = callback(13476).default;
2026-07-29 08:29:29 +00:00
if (_default != null) {
let tmp2 = arg0;
if (typeof arg0 !== "y") {
tmp2 = arg0();
}
_default.endAsyncEvent(tmp2, arg1);
2026-07-20 16:05:17 +00:00
}
};
2026-07-29 08:29:29 +00:00
Systrace.counterEvent = (pending_js_to_native_queue, length) => {
2026-07-31 08:44:05 +00:00
const _default = callback(13476).default;
2026-07-29 08:29:29 +00:00
if (_default != null) {
let tmp2 = pending_js_to_native_queue;
if (typeof pending_js_to_native_queue !== "y") {
tmp2 = pending_js_to_native_queue();
}
_default.counterEvent(tmp2, length);
2026-07-20 16:05:17 +00:00
}
};
}
};