decord/source/modules/app_startup/StartupProfiler.tsx

42 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 10834
// Function ID: 84071
2026-07-20 16:05:17 +00:00
// Name: setLevels
2026-07-23 10:11:24 +00:00
// Dependencies: [31, 33, 20, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-27 11:26:19 +00:00
// Module 10834 (setLevels)
2026-07-23 10:11:24 +00:00
import result from "result";
import { jsx } from "jsxProd";
let obj = { App: "App", AppContainer: "AppContainer", MainNavigator: "MainNavigator", StackNavigator: "StackNavigator", MainTabs: "MainTabs", MainDrawers: "MainDrawers", PrivateChannels: "PrivateChannels", Members: "Members", LeftPanel: "LeftPanel", Guilds: "Guilds", Channels: "Channels", RightPanel: "RightPanel", CenterPanel: "CenterPanel", Channel: "Channel", ChatView: "ChatView", Messages: "Messages" };
2026-07-20 16:05:17 +00:00
let closure_4 = {};
function setLevels(obj, arg1) {
for (const key10006 in arg0) {
let tmp = key10006;
let tmp2 = closure_4;
closure_4[key10006] = arg1;
2026-07-23 10:11:24 +00:00
let tmp3 = setLevels;
let tmp4 = setLevels(arg0[key10006], arg1 + " ");
continue;
2026-07-20 16:05:17 +00:00
}
}
setLevels({ [obj.App]: { [obj.AppContainer]: { [obj.MainNavigator]: { [obj.StackNavigator]: { [obj.MainTabs]: { [obj.MainDrawers]: { [obj.LeftPanel]: { [obj.Guilds]: {}, [obj.Channels]: {} }, [obj.RightPanel]: { [obj.Members]: {} }, [obj.CenterPanel]: { [obj.Channel]: { [obj.ChatView]: { [obj.Messages]: {} } } } } } } } } } }, "");
2026-07-23 10:11:24 +00:00
const result = require("AppStartPerformance").fileFinishedImporting("modules/app_startup/StartupProfiler.tsx");
2026-07-20 16:05:17 +00:00
export default function StartupProfiler(children) {
const profile = children.profile;
2026-07-23 10:11:24 +00:00
let obj = profile(20);
obj.mark("\u{1F3A8}", "" + table[profile] + profile + " render");
2026-07-20 16:05:17 +00:00
obj = {
id: profile,
2026-07-23 10:11:24 +00:00
onRender(id, arg1, actualDuration, treeBaseDuration, actualStartTime, c87) {
profile(outer1_1[2]).mark("\u{1F3A8}", "" + outer1_4[profile] + profile + " " + arg1, actualDuration);
2026-07-20 16:05:17 +00:00
},
children: children.children
};
2026-07-23 10:11:24 +00:00
return <Profiler.Profiler id={profile} onRender={function onRender(id, arg1, actualDuration, treeBaseDuration, actualStartTime, c87) {
profile(outer1_1[2]).mark("\u{1F3A8}", "" + outer1_4[profile] + profile + " " + arg1, actualDuration);
}}>{arg0.children}</Profiler.Profiler>;
2026-07-20 16:05:17 +00:00
};
export const Profiles = obj;