( profile_id: string, start_timestamp: number | undefined, profile: JSSelfProfile, event: ProfiledEvent, )
| 739 | * @returns {Profile | null} |
| 740 | */ |
| 741 | export function createProfilingEvent( |
| 742 | profile_id: string, |
| 743 | start_timestamp: number | undefined, |
| 744 | profile: JSSelfProfile, |
| 745 | event: ProfiledEvent, |
| 746 | ): Profile | null { |
| 747 | if (!isValidProfile(profile)) { |
| 748 | return null; |
| 749 | } |
| 750 | |
| 751 | return createProfilePayload(profile_id, start_timestamp, profile, event); |
| 752 | } |
| 753 | |
| 754 | // TODO (v8): We need to obtain profile ids in @sentry-internal/tracing, |
| 755 | // but we don't have access to this map because importing this map would |
no test coverage detected