Skip to content

Commit

Permalink
fix for tvos build
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed Jan 3, 2024
1 parent 01fc91f commit 65f31c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Sentry/SentryHub.m
Original file line number Diff line number Diff line change
Expand Up @@ -388,14 +388,14 @@ - (SentryTracer *)startTransactionWithContext:(SentryTransactionContext *)transa
configuration:(SentryTracerConfiguration *)configuration
{
SentryTracesSamplerDecision *samplerDecision;
SentryProfilesSamplerDecision *profilesSamplerDecision;

// in order to sample launch profiles, we must have already computed the trace/profile sampling
// decisions, so that we don't run the profiler for a launch that it would eventually be decided
// to sample out, thus doing incurring unnecessary overhead. They are stored in a static
// reference in SentryTracer; access them here so that we can properly start the launch trace
// that will contain the launch profile.
#if SENTRY_TARGET_PROFILING_SUPPORTED
SentryProfilesSamplerDecision *profilesSamplerDecision;
if (isTracingAppLaunch) {
samplerDecision = appLaunchTraceSamplerDecision;
profilesSamplerDecision = appLaunchProfilerSamplerDecision;
Expand Down

0 comments on commit 65f31c9

Please sign in to comment.