2026-07-20 16:05:17 +00:00
|
|
|
// Module ID: 908
|
2026-07-25 08:10:48 +00:00
|
|
|
// Function ID: 9973
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: isProfilingIntegrationWithProfiler
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [825, 800, 801]
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
// Module 908 (isProfilingIntegrationWithProfiler)
|
2026-07-23 10:11:24 +00:00
|
|
|
const require = arg1;
|
|
|
|
|
const dependencyMap = arg6;
|
2026-07-20 16:05:17 +00:00
|
|
|
function isProfilingIntegrationWithProfiler(_profiler) {
|
|
|
|
|
let tmp2 = !tmp;
|
|
|
|
|
if (!!_profiler) {
|
|
|
|
|
tmp2 = undefined !== _profiler._profiler;
|
|
|
|
|
}
|
|
|
|
|
if (tmp2) {
|
|
|
|
|
tmp2 = "function" === typeof _profiler._profiler.start;
|
|
|
|
|
}
|
|
|
|
|
if (tmp2) {
|
|
|
|
|
tmp2 = "function" === typeof _profiler._profiler.stop;
|
|
|
|
|
}
|
|
|
|
|
return tmp2;
|
|
|
|
|
}
|
|
|
|
|
Object.defineProperty(arg5, Symbol.toStringTag, { value: "Module" });
|
|
|
|
|
arg5.profiler = {
|
|
|
|
|
startProfiler() {
|
2026-07-23 10:11:24 +00:00
|
|
|
const client = require(825) /* getCurrentScope */.getClient();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (client) {
|
|
|
|
|
const integrationByName = client.getIntegrationByName("ProfilingIntegration");
|
|
|
|
|
if (integrationByName) {
|
|
|
|
|
if (isProfilingIntegrationWithProfiler(integrationByName)) {
|
|
|
|
|
const _profiler = integrationByName._profiler;
|
|
|
|
|
_profiler.start();
|
2026-07-23 10:11:24 +00:00
|
|
|
} else if (require(800).DEBUG_BUILD) {
|
|
|
|
|
const debug3 = require(801) /* consoleSandbox */.debug;
|
2026-07-20 16:05:17 +00:00
|
|
|
debug3.warn("Profiler is not available on profiling integration.");
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
} else if (require(800).DEBUG_BUILD) {
|
|
|
|
|
const debug2 = require(801) /* consoleSandbox */.debug;
|
2026-07-20 16:05:17 +00:00
|
|
|
debug2.warn("ProfilingIntegration is not available");
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
} else if (require(800).DEBUG_BUILD) {
|
|
|
|
|
const debug = require(801) /* consoleSandbox */.debug;
|
2026-07-20 16:05:17 +00:00
|
|
|
debug.warn("No Sentry client available, profiling is not started");
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
stopProfiler() {
|
2026-07-23 10:11:24 +00:00
|
|
|
const client = require(825) /* getCurrentScope */.getClient();
|
2026-07-20 16:05:17 +00:00
|
|
|
if (client) {
|
|
|
|
|
const integrationByName = client.getIntegrationByName("ProfilingIntegration");
|
|
|
|
|
if (integrationByName) {
|
|
|
|
|
if (isProfilingIntegrationWithProfiler(integrationByName)) {
|
|
|
|
|
const _profiler = integrationByName._profiler;
|
|
|
|
|
_profiler.stop();
|
2026-07-23 10:11:24 +00:00
|
|
|
} else if (require(800).DEBUG_BUILD) {
|
|
|
|
|
const debug3 = require(801) /* consoleSandbox */.debug;
|
2026-07-20 16:05:17 +00:00
|
|
|
debug3.warn("Profiler is not available on profiling integration.");
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
} else if (require(800).DEBUG_BUILD) {
|
|
|
|
|
const debug2 = require(801) /* consoleSandbox */.debug;
|
2026-07-20 16:05:17 +00:00
|
|
|
debug2.warn("ProfilingIntegration is not available");
|
|
|
|
|
}
|
2026-07-23 10:11:24 +00:00
|
|
|
} else if (require(800).DEBUG_BUILD) {
|
|
|
|
|
const debug = require(801) /* consoleSandbox */.debug;
|
2026-07-20 16:05:17 +00:00
|
|
|
debug.warn("No Sentry client available, profiling is not started");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|