Stops UI profiling (only effective in 'manual' mode).
()
| 117 | |
| 118 | /** Stops UI profiling (only effective in 'manual' mode). */ |
| 119 | public stop(): void { |
| 120 | if (this._lifecycleMode === 'trace') { |
| 121 | DEBUG_BUILD && |
| 122 | debug.warn( |
| 123 | '[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.', |
| 124 | ); |
| 125 | return; |
| 126 | } |
| 127 | |
| 128 | if (!this._isRunning) { |
| 129 | DEBUG_BUILD && debug.warn('[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.'); |
| 130 | return; |
| 131 | } |
| 132 | |
| 133 | this._endProfiling(); |
| 134 | } |
| 135 | |
| 136 | /** Handle an already-active root span at integration setup time (used only in trace mode). */ |
| 137 | public notifyRootSpanActive(rootSpan: Span): void { |
no test coverage detected