Skip to content

Conversation

@krystofwoldrich
Copy link
Contributor

@krystofwoldrich krystofwoldrich commented Jan 14, 2025

📢 Type of change

  • Refactoring

📜 Description

This PR doesn't change any of the initialization logic, only moves the code from the main module file to a standalone class for future changes.

💡 Motivation and Context

💚 How did you test it?

sample app

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

@krystofwoldrich krystofwoldrich changed the title Kw ref ios sdk init ref(ios): Extract Cocoa SDK init into standalone file Jan 14, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jan 14, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 532.29 ms 555.63 ms 23.34 ms
Size 17.75 MiB 20.11 MiB 2.37 MiB

Previous results on branch: kw-ref-ios-sdk-init

Startup times

Revision Plain With Sentry Diff
650ad89 448.65 ms 437.68 ms -10.97 ms
aca58c3 466.10 ms 450.37 ms -15.73 ms
6326ab7 445.10 ms 434.72 ms -10.39 ms

App size

Revision Plain With Sentry Diff
650ad89 17.75 MiB 20.11 MiB 2.36 MiB
aca58c3 17.75 MiB 20.11 MiB 2.36 MiB
6326ab7 17.75 MiB 20.11 MiB 2.37 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Jan 14, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 461.37 ms 530.94 ms 69.57 ms
Size 7.15 MiB 8.38 MiB 1.23 MiB

Previous results on branch: kw-ref-ios-sdk-init

Startup times

Revision Plain With Sentry Diff
6326ab7+dirty 390.48 ms 445.07 ms 54.59 ms
650ad89+dirty 317.38 ms 328.64 ms 11.26 ms
aca58c3+dirty 390.15 ms 460.67 ms 70.52 ms

App size

Revision Plain With Sentry Diff
6326ab7+dirty 7.15 MiB 8.38 MiB 1.23 MiB
650ad89+dirty 7.15 MiB 8.38 MiB 1.23 MiB
aca58c3+dirty 7.15 MiB 8.38 MiB 1.23 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Jan 14, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1256.67 ms 1246.48 ms -10.19 ms
Size 3.19 MiB 4.25 MiB 1.06 MiB

Previous results on branch: kw-ref-ios-sdk-init

Startup times

Revision Plain With Sentry Diff
650ad89+dirty 1248.86 ms 1252.69 ms 3.84 ms
aca58c3+dirty 1227.92 ms 1243.36 ms 15.44 ms
6326ab7+dirty 1211.35 ms 1212.63 ms 1.27 ms

App size

Revision Plain With Sentry Diff
650ad89+dirty 3.19 MiB 4.25 MiB 1.06 MiB
aca58c3+dirty 3.19 MiB 4.25 MiB 1.06 MiB
6326ab7+dirty 3.19 MiB 4.25 MiB 1.06 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Jan 14, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1229.63 ms 1238.63 ms 9.00 ms
Size 2.63 MiB 3.69 MiB 1.05 MiB

Previous results on branch: kw-ref-ios-sdk-init

Startup times

Revision Plain With Sentry Diff
650ad89+dirty 1231.02 ms 1239.31 ms 8.29 ms
aca58c3+dirty 1233.37 ms 1239.63 ms 6.27 ms
6326ab7+dirty 1228.06 ms 1224.84 ms -3.23 ms

App size

Revision Plain With Sentry Diff
650ad89+dirty 2.63 MiB 3.68 MiB 1.05 MiB
aca58c3+dirty 2.63 MiB 3.68 MiB 1.05 MiB
6326ab7+dirty 2.63 MiB 3.69 MiB 1.05 MiB

@krystofwoldrich krystofwoldrich changed the base branch from main to kw-chore-ios-time-to-display-init January 14, 2025 17:24
Base automatically changed from kw-chore-ios-time-to-display-init to main January 16, 2025 10:54
@krystofwoldrich krystofwoldrich changed the base branch from main to capture-app-start-errors January 20, 2025 14:52
@krystofwoldrich krystofwoldrich marked this pull request as ready for review January 20, 2025 15:55
Copy link
Contributor

@antonis antonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The refactoring LGTM and the sample app worked as expected for me 🚀

Copy link
Member

@philprime philprime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't run the tests locally, but the cocoa code looks fine to me.
@ @philipphofmann @brustolin I would appreciate a second opinion

Copy link
Member

@philipphofmann philipphofmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, for moving stuff around.

@krystofwoldrich krystofwoldrich merged commit 00e9040 into capture-app-start-errors Jan 21, 2025
60 checks passed
@krystofwoldrich krystofwoldrich deleted the kw-ref-ios-sdk-init branch January 21, 2025 16:22
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.

5 participants