diff --git a/packages/browser/src/profiling/utils.ts b/packages/browser/src/profiling/utils.ts index 6c9b4d8ed6b9..4a9a9af1d658 100644 --- a/packages/browser/src/profiling/utils.ts +++ b/packages/browser/src/profiling/utils.ts @@ -249,9 +249,9 @@ export function convertJSSelfProfileToSampledFormat(input: JSSelfProfile): Profi if (profile.frames[stackTop.frameId] === undefined) { profile.frames[stackTop.frameId] = { function: frame.name, - file: frame.resourceId ? input.resources[frame.resourceId] : undefined, - line: frame.line, - column: frame.column, + abs_path: typeof frame.resourceId === 'number' ? input.resources[frame.resourceId] : undefined, + lineno: frame.line, + colno: frame.column, }; } diff --git a/packages/types/src/profiling.ts b/packages/types/src/profiling.ts index d99736df735e..84a5238e7ace 100644 --- a/packages/types/src/profiling.ts +++ b/packages/types/src/profiling.ts @@ -14,8 +14,9 @@ export type ThreadCpuStack = FrameId[]; export type ThreadCpuFrame = { function: string; file?: string; - line?: number; - column?: number; + lineno?: number; + colno?: number; + abs_path?: string; }; export interface ThreadCpuProfile {