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

Function makeProfile

packages/profiling-node/test/utils.test.ts:18–34  ·  view source on GitHub ↗
(
  props: Partial<ProfiledEvent['sdkProcessingMetadata']['profile']>,
)

Source from the content-addressed store, hash-verified

16}
17
18function makeProfile(
19 props: Partial<ProfiledEvent['sdkProcessingMetadata']['profile']>,
20): NonNullable<ProfiledEvent['sdkProcessingMetadata']['profile']> {
21 return {
22 profile_id: '1',
23 profiler_logging_mode: 'lazy',
24 stacks: [],
25 samples: [
26 { elapsed_since_start_ns: '0', thread_id: '0', stack_id: 0 },
27 { elapsed_since_start_ns: '10', thread_id: '0', stack_id: 0 },
28 ],
29 measurements: {},
30 resources: [],
31 frames: [],
32 ...props,
33 };
34}
35
36describe('isValidSampleRate', () => {
37 it.each([

Callers 1

utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected