33 lines
1.0 KiB
JavaScript
33 lines
1.0 KiB
JavaScript
// Metro module 1071 (f1072).
|
|
import { getClient, debug } from "./Module817";
|
|
import { DEBUG_BUILD } from "./Module1072";
|
|
Object.defineProperty(exports, Symbol.toStringTag, {
|
|
value: "Module"
|
|
});
|
|
export const uiProfiler = {
|
|
startProfiler: function startProfiler() {
|
|
const client = getClient();
|
|
if (client) {
|
|
if (client.getIntegrationByName("BrowserProfiling")) {
|
|
client.emit("startUIProfiler");
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn("BrowserProfiling integration is not available");
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn("No Sentry client available, profiling is not started");
|
|
}
|
|
},
|
|
stopProfiler: function stopProfiler() {
|
|
const client = getClient();
|
|
if (client) {
|
|
if (client.getIntegrationByName("BrowserProfiling")) {
|
|
client.emit("stopUIProfiler");
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn("ProfilingIntegration is not available");
|
|
}
|
|
} else if (DEBUG_BUILD) {
|
|
debug.warn("No Sentry client available, profiling is not started");
|
|
}
|
|
}
|
|
};
|