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

Function createProfilingEvent

packages/browser/src/profiling/utils.ts:741–752  ·  view source on GitHub ↗
(
  profile_id: string,
  start_timestamp: number | undefined,
  profile: JSSelfProfile,
  event: ProfiledEvent,
)

Source from the content-addressed store, hash-verified

739 * @returns {Profile | null}
740 */
741export 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

Callers 1

setupFunction · 0.90

Calls 2

isValidProfileFunction · 0.70
createProfilePayloadFunction · 0.70

Tested by

no test coverage detected