Files
discord-decomp/sources/by-id/module-07467.jsx
T
2026-07-27 16:20:00 +03:00

54 lines
2.9 KiB
React

/* Metro module 7467; source: unknown; dependencies: [7396, 7397, 7369] */
function _fun60221(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7645:6, offset: 0x016fe6d0, size: 92 bytes, params: 8, frame: 16
const env0_0 = require;
const isProfilingIntegrationWithProfiler_60222 = function(a0) {
return (a0 ? a0._profiler !== undefined : !!a0) && typeof a0._profiler.start === 'function' && typeof a0._profiler.stop === 'function';
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
exports.profiler = {startProfiler: startProfiler_60223, stopProfiler: stopProfiler_60224};
}
function startProfiler_60223() { // fn#60223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7645:254, offset: 0x016fe72c, size: 314 bytes, params: 1, frame: 14
const DEBUG_BUILD = (require(7397) /* metro dependency 7397 */).DEBUG_BUILD;
const logger = (require(7369) /* metro dependency 7369 */).logger;
var integrationByName;
const client = (require(7396) /* metro dependency 7396 */).getClient();
if (client) {
integrationByName = client.getIntegrationByName('ProfilingIntegration');
if (integrationByName) {
if (isProfilingIntegrationWithProfiler_60222(integrationByName)) {
integrationByName._profiler.start();
} else if (DEBUG_BUILD) {
logger.warn('Profiler is not available on profiling integration.');
}
} else if (DEBUG_BUILD) {
logger.warn('ProfilingIntegration is not available');
}
} else if (DEBUG_BUILD) {
logger.warn('No Sentry client available, profiling is not started');
}
}
function stopProfiler_60224() { // fn#60224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7645:718, offset: 0x016fe866, size: 315 bytes, params: 1, frame: 14
const DEBUG_BUILD = (require(7397) /* metro dependency 7397 */).DEBUG_BUILD;
const logger = (require(7369) /* metro dependency 7369 */).logger;
var integrationByName;
const client = (require(7396) /* metro dependency 7396 */).getClient();
if (client) {
integrationByName = client.getIntegrationByName('ProfilingIntegration');
if (integrationByName) {
if (isProfilingIntegrationWithProfiler_60222(integrationByName)) {
integrationByName._profiler.stop();
} else if (DEBUG_BUILD) {
logger.warn('Profiler is not available on profiling integration.');
}
} else if (DEBUG_BUILD) {
logger.warn('ProfilingIntegration is not available');
}
} else if (DEBUG_BUILD) {
logger.warn('No Sentry client available, profiling is not started');
}
}