/* Metro module 12946; source: modules/systrace/native/installSystrace.tsx; dependencies: [27, 477, 12947, 2] */ import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */ import * as PlatformUtilsModule from '../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */ function _fun98605(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#98605, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13136:6, offset: 0x021b03ca, size: 128 bytes, params: 8, frame: 18 const env0_0 = require; const resolveName = function(a0) { var r0; var value = a0; if (typeof value === 'string') { r0 = value; } else { value = value(); r0 = value; } return r0; }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/systrace/native/installSystrace.tsx'); exports.installSystrace = installSystrace; function installSystrace() { // fn#98607, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13136:265, offset: 0x021b0463, size: 135 bytes, params: 1, frame: 13 if (PlatformUtilsModule.isAndroid()) { var installSystraceGetNativeModule = function() { return require(dependencyMap[2]).default; }; Systrace.isEnabled = isEnabled_98609; Systrace.beginEvent = beginEvent_98610; Systrace.endEvent = endEvent_98611; Systrace.beginAsyncEvent = beginAsyncEvent_98612; Systrace.endAsyncEvent = endAsyncEvent_98613; Systrace.counterEvent = counterEvent_98614; } function installSystraceIsEnabled() { // fn#98609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13136:368, owner: installSystrace.isEnabled, offset: 0x021b04ea, size: 44 bytes, params: 1, frame: 11 const installSystraceGetNativeModuleBinding = installSystraceGetNativeModule; const value = undefined; const value2 = installSystraceGetNativeModuleBinding(); const r1 = value2 == null ? value : value2.isEnabled(); return r1 != null && r1; } function installSystraceBeginEvent(a0) { // fn#98610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13136:464, owner: installSystrace.beginEvent, offset: 0x021b0516, size: 47 bytes, params: 2, frame: 13 var beginEvent; var value2; const value = installSystraceGetNativeModule(); if (value != null) { beginEvent = value.beginEvent; value2 = environment.__proto__; Reflect.apply(beginEvent, value, [resolveName(a0)]); } } function installSystraceEndEvent() { // fn#98611, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13136:544, owner: installSystrace.endEvent, offset: 0x021b0545, size: 31 bytes, params: 1, frame: 10 const value = installSystraceGetNativeModule(); if (value != null) { value.endEvent(); } } function installSystraceBeginAsyncEvent(a0) { // fn#98612, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13136:616, owner: installSystrace.beginAsyncEvent, offset: 0x021b0564, size: 64 bytes, params: 2, frame: 15 const installSystraceGetNativeModuleBinding = installSystraceGetNativeModule; const value = undefined; const value2 = installSystraceGetNativeModuleBinding(); return (value2 == null ? value : value2.beginAsyncEvent(resolveName(a0))) ?? 0; } function installSystraceEndAsyncEvent(a0, a1) { // fn#98613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13136:735, owner: installSystrace.endAsyncEvent, offset: 0x021b05a4, size: 51 bytes, params: 3, frame: 14 var endAsyncEvent; var value2; const value = installSystraceGetNativeModule(); if (value != null) { endAsyncEvent = value.endAsyncEvent; value2 = environment.__proto__; Reflect.apply(endAsyncEvent, value, [resolveName(a0), a1]); } } function installSystraceCounterEvent(a0, a1) { // fn#98614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13136:828, owner: installSystrace.counterEvent, offset: 0x021b05d7, size: 51 bytes, params: 3, frame: 14 var counterEvent; var value2; const value = installSystraceGetNativeModule(); if (value != null) { counterEvent = value.counterEvent; value2 = environment.__proto__; Reflect.apply(counterEvent, value, [resolveName(a0), a1]); } } } } global.__d(_fun98605, 12946, [27, 477, 12947, 2]) /* metro module 12946, dependencies: [27, 477, 12947, 2] */;