Skip to content

Commit de83137

Browse files
committed
ref(profiling): Move and rename profiler class to UIProfiler
1 parent eb51641 commit de83137

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/browser/src/profiling/traceLifecycleProfiler.ts renamed to packages/browser/src/profiling/UIProfiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const MAX_ROOT_SPAN_PROFILE_MS = 300_000; // 5 minutes
2727
* - there are no more sampled root spans, or
2828
* - the 60s chunk timer elapses while profiling is running.
2929
*/
30-
export class BrowserTraceLifecycleProfiler {
30+
export class UIProfiler {
3131
private _client: Client | undefined;
3232
private _profiler: JSSelfProfiler | undefined;
3333
private _chunkTimer: ReturnType<typeof setTimeout> | undefined;

packages/browser/src/profiling/integration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { BrowserOptions } from '../client';
44
import { DEBUG_BUILD } from '../debug-build';
55
import { WINDOW } from '../helpers';
66
import { startProfileForSpan } from './startProfileForSpan';
7-
import { BrowserTraceLifecycleProfiler } from './traceLifecycleProfiler';
7+
import { UIProfiler } from './UIProfiler';
88
import type { ProfiledEvent } from './utils';
99
import {
1010
addProfilesToEnvelope,
@@ -65,7 +65,7 @@ const _browserProfilingIntegration = (() => {
6565
return;
6666
}
6767

68-
const traceLifecycleProfiler = new BrowserTraceLifecycleProfiler();
68+
const traceLifecycleProfiler = new UIProfiler();
6969
traceLifecycleProfiler.initialize(client, sessionSampled);
7070

7171
// If there is an active, sampled root span already, notify the profiler

0 commit comments

Comments
 (0)