Skip to content

Commit

Permalink
fix most failing tests; only transmit chunks from stop method for con…
Browse files Browse the repository at this point in the history
…tinuous profiling
  • Loading branch information
armcknight committed May 3, 2024
1 parent 810a665 commit 328e105
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Sentry/SentryProfiler.mm
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ - (void)stopForReason:(SentryProfilerTruncationReason)reason
_samplingProfiler->stopSampling();
SENTRY_LOG_DEBUG(@"Stopped profiler %@.", self);

[self transmitChunkEnvelope];
if (_mode == SentryProfilerModeContinuous) {
[self transmitChunkEnvelope];
}
}

- (void)startMetricProfiler
Expand Down

0 comments on commit 328e105

Please sign in to comment.