decord/source/module_7473.js

54 lines
2.1 KiB
JavaScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 7473
// Function ID: 7474
// Dependencies: [7402, 7403, 7375]
2026-07-29 08:29:29 +00:00
2026-08-06 08:05:19 +00:00
// Module 7473
2026-07-29 08:29:29 +00:00
const require = arg1;
const dependencyMap = arg6;
arg5.profiler = {
startProfiler() {
2026-08-06 08:05:19 +00:00
const client = require(7402) /* getClient */.getClient();
2026-07-29 08:29:29 +00:00
if (client) {
const integrationByName = client.getIntegrationByName("ProfilingIntegration");
if (integrationByName) {
if (tmp6) {
const _profiler = integrationByName._profiler;
_profiler.start();
2026-08-06 08:05:19 +00:00
} else if (tmp(7403).DEBUG_BUILD) {
const logger3 = tmp(7375).logger;
2026-07-29 08:29:29 +00:00
logger3.warn("Profiler is not available on profiling integration.");
}
2026-08-04 21:03:28 +00:00
tmp6 = integrationByName && undefined !== integrationByName._profiler && typeof integrationByName._profiler.start === "function" && typeof integrationByName._profiler.stop === "function";
2026-08-06 08:05:19 +00:00
} else if (tmp(7403).DEBUG_BUILD) {
const logger2 = tmp(7375).logger;
2026-07-29 08:29:29 +00:00
logger2.warn("ProfilingIntegration is not available");
}
2026-08-06 08:05:19 +00:00
} else if (tmp(7403).DEBUG_BUILD) {
const logger = tmp(7375).logger;
2026-07-29 08:29:29 +00:00
logger.warn("No Sentry client available, profiling is not started");
}
},
stopProfiler() {
2026-08-06 08:05:19 +00:00
const client = require(7402) /* getClient */.getClient();
2026-07-29 08:29:29 +00:00
if (client) {
const integrationByName = client.getIntegrationByName("ProfilingIntegration");
if (integrationByName) {
if (tmp6) {
const _profiler = integrationByName._profiler;
_profiler.stop();
2026-08-06 08:05:19 +00:00
} else if (tmp(7403).DEBUG_BUILD) {
const logger3 = tmp(7375).logger;
2026-07-29 08:29:29 +00:00
logger3.warn("Profiler is not available on profiling integration.");
}
2026-08-04 21:03:28 +00:00
tmp6 = integrationByName && undefined !== integrationByName._profiler && typeof integrationByName._profiler.start === "function" && typeof integrationByName._profiler.stop === "function";
2026-08-06 08:05:19 +00:00
} else if (tmp(7403).DEBUG_BUILD) {
const logger2 = tmp(7375).logger;
2026-07-29 08:29:29 +00:00
logger2.warn("ProfilingIntegration is not available");
}
2026-08-06 08:05:19 +00:00
} else if (tmp(7403).DEBUG_BUILD) {
const logger = tmp(7375).logger;
2026-07-29 08:29:29 +00:00
logger.warn("No Sentry client available, profiling is not started");
}
}
};