You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/platforms/apple/guides/ios/session-replay/performance-overhead.mdx
+30-11Lines changed: 30 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,25 +11,26 @@ You can learn more about the various performance overhead optimizations implemen
11
11
12
12
## Benchmarking the iOS Replay SDK
13
13
14
-
The Pocket Casts app offers a diverse mix of components, including Fragments, Activities, and Jetpack Compose screens, making it an ideal candidate for testing. Here's how the benchmarks were conducted:
14
+
The Pocket Casts app offers a diverse mix of components making it an ideal candidate for testing. Here's how the benchmarks were conducted:
15
+
15
16
-**Configuration:** Full masking was enabled, and optimized release builds were used.
16
17
-**User Flow:** The same flow was executed 10 times to ensure consistency.
17
18
-**Real-World Representation:** This approach closely mirrors performance in real-world scenarios.
18
19
19
20
The benchmarks were run on an iPhone 14 Pro. Note that active Session Replay recording can introduce slow frames on older lower-end iOS devices (for example iPhone 8).
20
21
21
22
### Results
22
-
Below are the results of the benchmarking tests, presented as median values to reflect typical overhead.
23
23
24
+
Below are the results of the benchmarking tests, presented as median values to reflect typical overhead.
@@ -50,7 +51,7 @@ SentrySDK.start(configureOptions: { options in
50
51
51
52
If the Replay SDK causes performance issues on lower-end devices (for example, [this](https://github.com/getsentry/relay/blob/695b459e03481f7d799f07b2b901b140e5d5753d/relay-event-schema/src/protocol/device_class.rs#L21-L37) is how Sentry determines the device class), you can disable it specifically for those devices:
52
53
53
-
```kotlin
54
+
```swift
54
55
SentrySDK.start(configureOptions: { options in
55
56
options.dsn="___PUBLIC_DSN___"
56
57
options.debug=true
@@ -59,3 +60,21 @@ SentrySDK.start(configureOptions: { options in
In case you are noticing issues with the experimental view renderer, please
68
+
report the issue on [GitHub](https://github.com/getsentry/sentry-cocoa).
69
+
</Alert>
70
+
71
+
Starting with v8.47.0 you can enable the up-to-5x-faster new view renderer, reducing the impact of Session Replay on the main thread and potential frame drops.
72
+
73
+
While we do recommend the new view renderer, it's currently considered an experimental feature to further evaluate its stability.
74
+
After the evaluation phase we are going to enable it by default.
0 commit comments