* Stops the Sentry UI profiler. * Calls to stop will stop the profiler and flush the currently collected profile data to Sentry.
()
| 29 | * Calls to stop will stop the profiler and flush the currently collected profile data to Sentry. |
| 30 | */ |
| 31 | function stopProfiler(): void { |
| 32 | const client = getClient(); |
| 33 | if (!client) { |
| 34 | DEBUG_BUILD && debug.warn('No Sentry client available, profiling is not started'); |
| 35 | return; |
| 36 | } |
| 37 | |
| 38 | const integration = client.getIntegrationByName('BrowserProfiling'); |
| 39 | if (!integration) { |
| 40 | DEBUG_BUILD && debug.warn('ProfilingIntegration is not available'); |
| 41 | return; |
| 42 | } |
| 43 | |
| 44 | client.emit('stopUIProfiler'); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Profiler namespace for controlling the JS profiler in 'manual' mode. |
nothing calls this directly
no test coverage detected