Skip to content

feat(profiling): Add Native iOS profiles to Hermes JS profiles #3349

Merged
krystofwoldrich merged 48 commits into
mainfrom
kw-mixed-profiling
Nov 17, 2023
Merged

feat(profiling): Add Native iOS profiles to Hermes JS profiles #3349
krystofwoldrich merged 48 commits into
mainfrom
kw-mixed-profiling

Conversation

@krystofwoldrich

@krystofwoldrich krystofwoldrich commented Oct 17, 2023

Copy link
Copy Markdown
Contributor

📢 Type of change

  • New feature

📜 Description

This PR adds native iOS profiles to currently existing RN Hermes profiles.

Hermes and Native profiles are merged on a device and sent as one profiling event in the envelope with associated Transaction.

💡 Motivation and Context

💚 How did you test it?

sample app, unit tests

📝 Checklist

  • I reviewed submitted code
  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • All tests passing
  • No breaking changes

🔮 Next steps

@krystofwoldrich krystofwoldrich changed the title Add new profile event handling and basic merge feat(profiling): Add Native iOS profiles to Hermes JS profiles Oct 17, 2023
@github-actions

github-actions Bot commented Oct 17, 2023

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 665f1d7

@krystofwoldrich
krystofwoldrich changed the base branch from main to kw-symbolicated-profiles October 19, 2023 13:50
@krystofwoldrich
krystofwoldrich marked this pull request as ready for review October 30, 2023 12:48
@krystofwoldrich krystofwoldrich mentioned this pull request Nov 7, 2023

@armcknight armcknight left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Couple quick things from me!

Comment thread ios/RNSentry.mm Outdated
Comment thread ios/RNSentry.mm
Comment thread ios/RNSentry.mm
Comment thread src/js/profiling/nativeTypes.ts
Comment thread src/js/profiling/integration.ts Outdated
@krystofwoldrich

Copy link
Copy Markdown
Contributor Author

@armcknight @lucas-zimerman Thank you for the feedback. I've adjusted to code, can you take one more look?

@armcknight armcknight left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Native code changes in this PR look good, nice work.

I noticed some preexisting code not covered in the diff, so I couldn't comment directly on it, but is this macro left undefined in the main branch, and you just define it to 1 if you're debugging locally?

#if SENTRY_PROFILING_DEBUG_ENABLED

@krystofwoldrich

Copy link
Copy Markdown
Contributor Author

@armcknight Yes, exactly.

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