diff --git a/performances/src/utils.ts b/performances/src/profilers/profilingUtils.ts similarity index 69% rename from performances/src/utils.ts rename to performances/src/profilers/profilingUtils.ts index 0454b76576..9da327c0fe 100644 --- a/performances/src/utils.ts +++ b/performances/src/profilers/profilingUtils.ts @@ -1,4 +1,4 @@ -import type { ProfilingOptions } from './types' +import type { ProfilingOptions } from '../types' export function isSdkBundleUrl(options: ProfilingOptions, url: string) { return url === options.bundleUrl diff --git a/performances/src/profilers/startCpuProfiling.ts b/performances/src/profilers/startCpuProfiling.ts index 88a68b6b26..8450385b85 100644 --- a/performances/src/profilers/startCpuProfiling.ts +++ b/performances/src/profilers/startCpuProfiling.ts @@ -1,6 +1,6 @@ import type { CDPSession } from 'puppeteer' import type { ProfilingOptions } from '../types' -import { isSdkBundleUrl } from '../utils' +import { isSdkBundleUrl } from './profilingUtils' export async function startCPUProfiling(options: ProfilingOptions, client: CDPSession) { await client.send('Profiler.enable') diff --git a/performances/src/profilers/startMemoryProfiling.ts b/performances/src/profilers/startMemoryProfiling.ts index db8a38be60..3a2f3276e5 100644 --- a/performances/src/profilers/startMemoryProfiling.ts +++ b/performances/src/profilers/startMemoryProfiling.ts @@ -1,6 +1,6 @@ import type { CDPSession } from 'puppeteer' -import { isSdkBundleUrl } from '../utils' import type { ProfilingOptions } from '../types' +import { isSdkBundleUrl } from './profilingUtils' export async function startMemoryProfiling(options: ProfilingOptions, client: CDPSession) { await client.send('HeapProfiler.enable') diff --git a/performances/src/profilers/startNetworkProfiling.ts b/performances/src/profilers/startNetworkProfiling.ts index 48499c51dc..90841aa59f 100644 --- a/performances/src/profilers/startNetworkProfiling.ts +++ b/performances/src/profilers/startNetworkProfiling.ts @@ -1,6 +1,6 @@ import type { CDPSession, Protocol } from 'puppeteer' import type { ProfilingOptions } from '../types' -import { isSdkBundleUrl } from '../utils' +import { isSdkBundleUrl } from './profilingUtils' export async function startNetworkProfiling(options: ProfilingOptions, client: CDPSession) { await client.send('Network.enable')