Philipp Hofmann
Philipp Hofmann
Wait for https://github.com/getsentry/sentry-cocoa/pull/1910 to get merged before tackling this PR because it tracks the timestamps of slow and frozen frames.
FrameTimestamps are stored here https://github.com/getsentry/sentry-cocoa/blob/62ea01495e24ec722ebdf2aed5b95da89e3f1a73/Sources/Sentry/SentryFramesTracker.m#L31 Tracer adds them to the profile here https://github.com/getsentry/sentry-cocoa/blob/62ea01495e24ec722ebdf2aed5b95da89e3f1a73/Sources/Sentry/SentryTracer.m#L439-L441
Reopened because of https://github.com/getsentry/sentry-cocoa/pull/2028#issuecomment-1231854727
After investigating this feature, it turned out that it is not that useful. If a lifecycle method needs 200 ms to complete, and we put a slow frame span below...
Thanks for the input, @ialimz. Those are the primary reasons why we didn't get started with it yet.
The docs of [MetricKit](https://developer.apple.com/documentation/metrickit) state > The system delivers metric reports about the previous 24 hours to a registered app at most once per day, and delivers diagnostic reports immediately...
This is roughly how you can subscribe to the data of MetricKit. ## Swift ```Swift class AppMetrics: NSObject, MXMetricManagerSubscriber { func receiveReports() { let shared = MXMetricManager.shared shared.add(self) } func...
Thanks a lot, @filip-doordash, for sharing your document. I took a look at the [`MXCrashDiagnostic`](https://developer.apple.com/documentation/metrickit/mxcrashdiagnostic?language=objc). The [`MXCallStackTree`](https://developer.apple.com/documentation/metrickit/mxcallstacktree?language=objc) has one field [`JSONRepresentation`](https://developer.apple.com/documentation/metrickit/mxcallstacktree/3552293-jsonrepresentation?language=objc), which contains the information on the stack trace. We...
Thanks for clarifying that, @filip-doordash. Yes, the items you mentioned totally make sense, and the 24 to 48 hour delay won't be a huge deal for these.
Thanks for the update, @filip-doordash. I hope I have the bandwidth to look closely at this in one or two weeks.