Files
klz-cables.com/.pnpm-store/v10/files/29/8384a76a02492ea51e59f296357446a5848d9bec24e78c9cbc4bf2c18a591121f7e2f9fb6d1e262472003eb1c36d5d0dae9cc7c9e25cd962554646e01d8dfd
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

60 lines
1.8 KiB
Plaintext

Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const debugBuild = require('../debug-build.js');
/**
* Starts the Sentry UI profiler.
* This mode is exclusive with the transaction profiler and will only work if the profilesSampleRate is set to a falsy value.
* In UI profiling mode, the profiler will keep reporting profile chunks to Sentry until it is stopped, which allows for continuous profiling of the application.
*/
function startProfiler() {
const client = core.getClient();
if (!client) {
debugBuild.DEBUG_BUILD && core.debug.warn('No Sentry client available, profiling is not started');
return;
}
const integration = client.getIntegrationByName('BrowserProfiling');
if (!integration) {
debugBuild.DEBUG_BUILD && core.debug.warn('BrowserProfiling integration is not available');
return;
}
client.emit('startUIProfiler');
}
/**
* Stops the Sentry UI profiler.
* Calls to stop will stop the profiler and flush the currently collected profile data to Sentry.
*/
function stopProfiler() {
const client = core.getClient();
if (!client) {
debugBuild.DEBUG_BUILD && core.debug.warn('No Sentry client available, profiling is not started');
return;
}
const integration = client.getIntegrationByName('BrowserProfiling');
if (!integration) {
debugBuild.DEBUG_BUILD && core.debug.warn('ProfilingIntegration is not available');
return;
}
client.emit('stopUIProfiler');
}
/**
* Profiler namespace for controlling the JS profiler in 'manual' mode.
*
* Requires the `browserProfilingIntegration` from the `@sentry/browser` package.
*/
const uiProfiler = {
startProfiler,
stopProfiler,
};
exports.uiProfiler = uiProfiler;
//# sourceMappingURL=index.js.map