Skip to content

Conversation

armcknight
Copy link
Member

@armcknight armcknight commented Jun 16, 2025

For #5327

I noticed while reviewing #5300 that we mix persisted and current options when looking at conditions to stop launch profiles, specifically w.r.t. TTID/TTFD.

Copy link

codecov bot commented Jun 16, 2025

Codecov Report

Attention: Patch coverage is 89.09091% with 30 lines in your changes missing coverage. Please review.

Project coverage is 86.473%. Comparing base (a7655b5) to head (f3e7852).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
Sources/Sentry/Profiling/SentryLaunchProfiling.m 89.705% 14 Missing ⚠️
Sources/Sentry/SentrySDK.m 64.000% 9 Missing ⚠️
...entry/Profiling/SentryProfiledTracerConcurrency.mm 84.000% 4 Missing ⚠️
...rces/Sentry/Profiling/SentryProfileConfiguration.m 89.655% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##              main     #5417       +/-   ##
=============================================
+ Coverage   86.449%   86.473%   +0.023%     
=============================================
  Files          417       418        +1     
  Lines        35424     35531      +107     
  Branches     15145     15391      +246     
=============================================
+ Hits         30624     30725      +101     
- Misses        4759      4765        +6     
  Partials        41        41               
Files with missing lines Coverage Δ
SentryTestUtils/ClearTestState.swift 86.153% <100.000%> (ø)
Sources/Sentry/SentryFileManager.m 94.774% <ø> (+0.282%) ⬆️
Sources/Sentry/SentryPerformanceTracker.m 97.560% <100.000%> (-2.440%) ⬇️
Sources/Sentry/SentryProfiler.mm 90.857% <100.000%> (+2.302%) ⬆️
Sources/Sentry/SentrySessionTracker.m 99.137% <100.000%> (ø)
Sources/Sentry/SentryTimeToDisplayTracker.m 100.000% <100.000%> (+0.833%) ⬆️
...rces/Sentry/Profiling/SentryProfileConfiguration.m 89.655% <89.655%> (ø)
...entry/Profiling/SentryProfiledTracerConcurrency.mm 91.880% <84.000%> (-0.880%) ⬇️
Sources/Sentry/SentrySDK.m 87.234% <64.000%> (-1.488%) ⬇️
Sources/Sentry/Profiling/SentryLaunchProfiling.m 91.558% <89.705%> (-5.251%) ⬇️

... and 18 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a7655b5...f3e7852. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

github-actions bot commented Jun 16, 2025

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1232.61 ms 1255.94 ms 23.33 ms
Size 23.75 KiB 881.88 KiB 858.13 KiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
a2a3bfb 1227.94 ms 1261.26 ms 33.32 ms
8ad303c 1220.02 ms 1231.79 ms 11.77 ms
2691350 1224.92 ms 1255.82 ms 30.90 ms
f92cfa9 1228.45 ms 1251.33 ms 22.88 ms
7908e84 1224.33 ms 1246.39 ms 22.06 ms
acac774 1217.76 ms 1253.29 ms 35.52 ms
cc7f629 1226.00 ms 1245.51 ms 19.51 ms
2a36c3f 1227.27 ms 1246.89 ms 19.63 ms
4d264fa 1223.48 ms 1246.91 ms 23.44 ms
5196f0d 1213.35 ms 1231.37 ms 18.02 ms

App size

Revision Plain With Sentry Diff
a2a3bfb 23.75 KiB 872.67 KiB 848.92 KiB
8ad303c 23.75 KiB 879.24 KiB 855.49 KiB
2691350 23.75 KiB 850.73 KiB 826.98 KiB
f92cfa9 23.75 KiB 855.38 KiB 831.62 KiB
7908e84 23.74 KiB 872.75 KiB 849.00 KiB
acac774 23.75 KiB 866.51 KiB 842.76 KiB
cc7f629 23.75 KiB 878.48 KiB 854.73 KiB
2a36c3f 23.75 KiB 874.45 KiB 850.71 KiB
4d264fa 23.74 KiB 874.07 KiB 850.33 KiB
5196f0d 23.75 KiB 876.93 KiB 853.19 KiB

Previous results on branch: armckngiht/fix/check-previous-options-ttfd-launch-profiles

Startup times

Revision Plain With Sentry Diff
e363fc9 1227.41 ms 1250.64 ms 23.23 ms
c62431d 1229.37 ms 1254.51 ms 25.14 ms
6f69e49 1235.20 ms 1260.51 ms 25.31 ms
7778e26 1201.77 ms 1223.18 ms 21.41 ms
1d95f93 1243.08 ms 1262.59 ms 19.51 ms

App size

Revision Plain With Sentry Diff
e363fc9 23.75 KiB 880.35 KiB 856.60 KiB
c62431d 23.75 KiB 880.35 KiB 856.60 KiB
6f69e49 23.75 KiB 875.96 KiB 852.21 KiB
7778e26 23.75 KiB 881.25 KiB 857.50 KiB
1d95f93 23.75 KiB 881.35 KiB 857.60 KiB

@armcknight armcknight marked this pull request as ready for review July 3, 2025 09:46
@armcknight armcknight marked this pull request as draft July 9, 2025 06:19
@armcknight armcknight marked this pull request as ready for review July 10, 2025 01:26
Copy link
Contributor

github-actions bot commented Jul 15, 2025

🚨 Detected changes in high risk code 🚨

High-risk code can easily blow up and is hard to test. We had severe bugs in the past. Be extra careful when changing these files, and have an extra careful look at these:

  • Sources/Sentry/SentryFileManager.m

@armcknight armcknight merged commit 2cae5ff into main Jul 16, 2025
132 of 134 checks passed
@armcknight armcknight deleted the armckngiht/fix/check-previous-options-ttfd-launch-profiles branch July 16, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants