Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4907.js (118.4 MB)
56 lines
2.2 KiB
JavaScript
56 lines
2.2 KiB
JavaScript
// Module ID: 13137
|
|
// Function ID: 13138
|
|
// Dependencies: [13066, 13067, 13039]
|
|
|
|
// Module 13137
|
|
import _mod13066 from "module_13066" /* 13066 */;
|
|
|
|
require = arg1;
|
|
const dependencyMap = arg6;
|
|
|
|
export const profiler = {
|
|
startProfiler() {
|
|
const client = _mod13066.getClient();
|
|
if (client) {
|
|
const integrationByName = client.getIntegrationByName("ProfilingIntegration");
|
|
if (integrationByName) {
|
|
if (tmp6) {
|
|
const _profiler = integrationByName._profiler;
|
|
_profiler.start();
|
|
} else if (tmp(13067).DEBUG_BUILD) {
|
|
const logger3 = tmp(13039).logger;
|
|
logger3.warn("Profiler is not available on profiling integration.");
|
|
}
|
|
tmp6 = integrationByName && undefined !== integrationByName._profiler && typeof integrationByName._profiler.start === "function" && typeof integrationByName._profiler.stop === "function";
|
|
} else if (tmp(13067).DEBUG_BUILD) {
|
|
const logger2 = tmp(13039).logger;
|
|
logger2.warn("ProfilingIntegration is not available");
|
|
}
|
|
} else if (tmp(13067).DEBUG_BUILD) {
|
|
const logger = tmp(13039).logger;
|
|
logger.warn("No Sentry client available, profiling is not started");
|
|
}
|
|
},
|
|
stopProfiler() {
|
|
const client = _mod13066.getClient();
|
|
if (client) {
|
|
const integrationByName = client.getIntegrationByName("ProfilingIntegration");
|
|
if (integrationByName) {
|
|
if (tmp6) {
|
|
const _profiler = integrationByName._profiler;
|
|
_profiler.stop();
|
|
} else if (tmp(13067).DEBUG_BUILD) {
|
|
const logger3 = tmp(13039).logger;
|
|
logger3.warn("Profiler is not available on profiling integration.");
|
|
}
|
|
tmp6 = integrationByName && undefined !== integrationByName._profiler && typeof integrationByName._profiler.start === "function" && typeof integrationByName._profiler.stop === "function";
|
|
} else if (tmp(13067).DEBUG_BUILD) {
|
|
const logger2 = tmp(13039).logger;
|
|
logger2.warn("ProfilingIntegration is not available");
|
|
}
|
|
} else if (tmp(13067).DEBUG_BUILD) {
|
|
const logger = tmp(13039).logger;
|
|
logger.warn("No Sentry client available, profiling is not started");
|
|
}
|
|
}
|
|
};
|