Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(android): Extracts Android native initialization to standalone structures #4445

Merged
merged 10 commits into from
Jan 22, 2025

Conversation

antonis
Copy link
Collaborator

@antonis antonis commented Jan 14, 2025

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Extracts Android native initialization to standalone structures

⛓️ PR Chain

💡 Motivation and Context

Part of #3608

💚 How did you test it?

Manual, CI

📝 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

🔮 Next steps

Copy link
Contributor

github-actions bot commented Jan 14, 2025

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 434.09 ms 448.31 ms 14.22 ms
Size 17.75 MiB 20.11 MiB 2.37 MiB

Previous results on branch: antonis/extract-android-sdk-init

Startup times

Revision Plain With Sentry Diff
0b81196 501.00 ms 506.41 ms 5.41 ms
b2a0c05 439.75 ms 449.83 ms 10.08 ms
c4bd9bf 428.13 ms 418.76 ms -9.37 ms
9f9c2c7 446.59 ms 448.52 ms 1.93 ms

App size

Revision Plain With Sentry Diff
0b81196 17.75 MiB 20.11 MiB 2.37 MiB
b2a0c05 17.75 MiB 20.11 MiB 2.37 MiB
c4bd9bf 17.75 MiB 20.11 MiB 2.37 MiB
9f9c2c7 17.75 MiB 20.11 MiB 2.37 MiB

Copy link
Contributor

github-actions bot commented Jan 14, 2025

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1224.57 ms 1222.67 ms -1.90 ms
Size 2.63 MiB 3.69 MiB 1.05 MiB

Previous results on branch: antonis/extract-android-sdk-init

Startup times

Revision Plain With Sentry Diff
c4bd9bf+dirty 1212.41 ms 1219.76 ms 7.35 ms
b2a0c05+dirty 1223.98 ms 1231.33 ms 7.35 ms
0b81196+dirty 1239.04 ms 1239.41 ms 0.37 ms
9f9c2c7+dirty 1226.22 ms 1227.06 ms 0.84 ms

App size

Revision Plain With Sentry Diff
c4bd9bf+dirty 2.63 MiB 3.69 MiB 1.05 MiB
b2a0c05+dirty 2.63 MiB 3.69 MiB 1.05 MiB
0b81196+dirty 2.63 MiB 3.68 MiB 1.05 MiB
9f9c2c7+dirty 2.63 MiB 3.69 MiB 1.05 MiB

Copy link
Contributor

github-actions bot commented Jan 14, 2025

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1234.78 ms 1237.63 ms 2.85 ms
Size 3.19 MiB 4.25 MiB 1.06 MiB

Previous results on branch: antonis/extract-android-sdk-init

Startup times

Revision Plain With Sentry Diff
c4bd9bf+dirty 1234.83 ms 1242.81 ms 7.98 ms
b2a0c05+dirty 1224.71 ms 1227.85 ms 3.14 ms
0b81196+dirty 1228.43 ms 1234.00 ms 5.57 ms
9f9c2c7+dirty 1239.08 ms 1232.19 ms -6.90 ms

App size

Revision Plain With Sentry Diff
c4bd9bf+dirty 3.19 MiB 4.25 MiB 1.06 MiB
b2a0c05+dirty 3.19 MiB 4.25 MiB 1.06 MiB
0b81196+dirty 3.19 MiB 4.25 MiB 1.06 MiB
9f9c2c7+dirty 3.19 MiB 4.25 MiB 1.06 MiB

@antonis antonis marked this pull request as ready for review January 14, 2025 18:20
Copy link
Contributor

github-actions bot commented Jan 14, 2025

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 361.48 ms 391.70 ms 30.22 ms
Size 7.15 MiB 8.38 MiB 1.23 MiB

Previous results on branch: antonis/extract-android-sdk-init

Startup times

Revision Plain With Sentry Diff
c4bd9bf+dirty 369.98 ms 389.00 ms 19.02 ms
b2a0c05+dirty 391.85 ms 429.19 ms 37.34 ms
0b81196+dirty 402.70 ms 452.38 ms 49.68 ms
9f9c2c7+dirty 412.58 ms 457.55 ms 44.98 ms

App size

Revision Plain With Sentry Diff
c4bd9bf+dirty 7.15 MiB 8.38 MiB 1.23 MiB
b2a0c05+dirty 7.15 MiB 8.38 MiB 1.23 MiB
0b81196+dirty 7.15 MiB 8.38 MiB 1.23 MiB
9f9c2c7+dirty 7.15 MiB 8.38 MiB 1.23 MiB

Copy link
Collaborator

@lucas-zimerman lucas-zimerman left a comment

Choose a reason for hiding this comment

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

looks good to me, LGTM!

Copy link
Member

@krystofwoldrich krystofwoldrich left a comment

Choose a reason for hiding this comment

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

LGTM 🚀 Thank you!

@antonis antonis merged commit 2cb7eb2 into capture-app-start-errors Jan 22, 2025
69 checks passed
@antonis antonis deleted the antonis/extract-android-sdk-init branch January 22, 2025 07: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.

3 participants