MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / stop

Method stop

packages/browser/src/profiling/UIProfiler.ts:119–134  ·  view source on GitHub ↗

Stops UI profiling (only effective in 'manual' mode).

()

Source from the content-addressed store, hash-verified

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 {

Callers 1

setupFunction · 0.95

Calls 2

_endProfilingMethod · 0.95
warnMethod · 0.65

Tested by

no test coverage detected