decord/source/modules/local_message_caching/LocalMessageCacheStatsManager.tsx

76 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 16637
// Function ID: 129810
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-25 08:10:48 +00:00
// Dependencies: [7, 6, 15, 17, 18, 653, 5716, 675, 5078, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 16637 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import expandLocation from "expandLocation";
import makeLogKey from "makeLogKey";
import _possibleConstructorReturn from "_possibleConstructorReturn";
import _getPrototypeOf from "_getPrototypeOf";
import _inherits from "_inherits";
import ME from "ME";
import tmp3 from "AutomaticLifecycleManager";
let closure_7;
let closure_8;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = !valueOf.call(Reflect.construct(Boolean, [], () => {
}));
function _isNativeReflectConstruct() {
return closure_0;
}
const result = _isNativeReflectConstruct();
}
function makeLogLine(channelId) {
const items = [channelId.channelId, , , ];
let str = "-1";
let str2 = "-1";
if (null != channelId.localMessageDetails) {
str2 = channelId.localMessageDetails.loadTime - channelId.startTime;
}
items[1] = str2;
if (null != channelId.networkMessageDetails) {
str = channelId.networkMessageDetails.loadTime - channelId.startTime;
}
items[2] = str;
let str3 = "incomplete";
if (null != channelId.localMessageDetails) {
str3 = "incomplete";
if (null != channelId.networkMessageDetails) {
let str5 = "mismatch";
if (channelId.localMessageDetails.count === channelId.networkMessageDetails.count) {
str5 = "mismatch";
if (channelId.localMessageDetails.lastMessageId === channelId.networkMessageDetails.lastMessageId) {
str5 = "match";
}
}
str3 = str5;
}
}
items[3] = str3;
return items.join(":");
}
function handleAppStateUpdate(state) {
if (state.state === constants2.BACKGROUND) {
const _Array = Array;
2026-07-25 08:10:48 +00:00
const fetchLogs = importDefault(5716).fetchLogs;
2026-07-20 16:05:17 +00:00
const mapped = Array.from(fetchLogs.values()).map(makeLogLine);
2026-07-23 10:11:24 +00:00
let obj = importDefault(675);
2026-07-25 08:10:48 +00:00
obj = { num_channels_fetch_started: importDefault(5716).channelsFetchStarted.size, num_channels_local_cached: importDefault(5716).channelsFetchedWithLocalMessages.size, num_channels_fetched_network: importDefault(5716).channelsFetchedNetwork.size };
2026-07-23 10:11:24 +00:00
const sum = c9 + 1;
c9 = sum;
2026-07-20 16:05:17 +00:00
obj.num_times_backgrounded = sum;
obj.fetch_entries = mapped;
obj.track(constants.CACHE_STATS_RECORDED, obj);
const arr = Array.from(fetchLogs.values());
}
}
2026-07-23 10:11:24 +00:00
({ AnalyticEvents: closure_7, AppStates: closure_8 } = ME);
let c9 = 0;
2026-07-20 16:05:17 +00:00
tmp3 = new tmp3();
2026-07-23 10:11:24 +00:00
let result = require("_possibleConstructorReturn").fileFinishedImporting("modules/local_message_caching/LocalMessageCacheStatsManager.tsx");
2026-07-20 16:05:17 +00:00
export default tmp3;