Repository navigation
ref: Add native utility and profiling targets - #9722
Conversation
Size Analysis1 component analyzed iOS Builds
|
📲 Install BuildsiOS
|
itaybre
left a comment
There was a problem hiding this comment.
LGTM, but be careful with the PR conflicts
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit dc6c57d. Configure here.
|
I'll postpone this change until after make |
dc6c57d to
71bcd3f
Compare
c9e742e to
397417f
Compare
PR risk: mediumFor commit Main concerns: dependencies customers inherit, public contract, reach. Rules that block low also fired:
This label is a hint for reviewers, not an approval. |
9ae44bc to
718ea83
Compare
🚨 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:
|

📜 Description
Introduce
SentryNativeUtilsandSentryProfilingas shared static-library targets in Xcode and SwiftPM. They own the time helpers and profiling system-metrics value object, with the SDK consuming those implementations.💡 Motivation and Context
Stacked on #9826. The profiling boundary extraction continues in #9608.
SentryNativeUtilscontains Objective-C++ utilities without Swift or SDK implementation dependencies.SentryProfilingdepends on native utilities, not SDK implementation code or crash backends. The sampler and profiling capability checks remain SDK-side.Arrows point from consumers to their dependencies:
flowchart TD SDK["SDK targets"] --> Profiling["SentryProfiling"] SDK --> NativeUtils["SentryNativeUtils"] Profiling --> NativeUtils ProfilingTests["SentryProfilingTests"] --> Profiling NativeUtilsTests["SentryNativeUtilsTests"] --> NativeUtilsThe target boundaries preserve C linkage, SDK exports, static archive dependencies, and strict SDK nullability warnings. Dedicated SwiftPM suites cover the extracted utilities.
#skip-changelog
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.