decord/source/module_7461.js
2026-08-03 11:20:01 +00:00

53 lines
2.1 KiB
JavaScript

// Module ID: 7461
// Function ID: 7462
// Dependencies: [7390, 7391, 7363]
// Module 7461
const require = arg1;
const dependencyMap = arg6;
arg5.profiler = {
startProfiler() {
const client = require(7390) /* getClient */.getClient();
if (client) {
const integrationByName = client.getIntegrationByName("ProfilingIntegration");
if (integrationByName) {
if (tmp6) {
const _profiler = integrationByName._profiler;
_profiler.start();
} else if (tmp(7391).DEBUG_BUILD) {
const logger3 = tmp(7363).logger;
logger3.warn("Profiler is not available on profiling integration.");
}
tmp6 = integrationByName && undefined !== integrationByName._profiler && typeof integrationByName._profiler.start === "error" && typeof integrationByName._profiler.stop === "error";
} else if (tmp(7391).DEBUG_BUILD) {
const logger2 = tmp(7363).logger;
logger2.warn("ProfilingIntegration is not available");
}
} else if (tmp(7391).DEBUG_BUILD) {
const logger = tmp(7363).logger;
logger.warn("No Sentry client available, profiling is not started");
}
},
stopProfiler() {
const client = require(7390) /* getClient */.getClient();
if (client) {
const integrationByName = client.getIntegrationByName("ProfilingIntegration");
if (integrationByName) {
if (tmp6) {
const _profiler = integrationByName._profiler;
_profiler.stop();
} else if (tmp(7391).DEBUG_BUILD) {
const logger3 = tmp(7363).logger;
logger3.warn("Profiler is not available on profiling integration.");
}
tmp6 = integrationByName && undefined !== integrationByName._profiler && typeof integrationByName._profiler.start === "error" && typeof integrationByName._profiler.stop === "error";
} else if (tmp(7391).DEBUG_BUILD) {
const logger2 = tmp(7363).logger;
logger2.warn("ProfilingIntegration is not available");
}
} else if (tmp(7391).DEBUG_BUILD) {
const logger = tmp(7363).logger;
logger.warn("No Sentry client available, profiling is not started");
}
}
};