Skip to content

Commit f927b07

Browse files
authored
Disable sff & frame delay detection on web, linux and windows (#2182)
* disable
1 parent 5fdb50f commit f927b07

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## Unreleased
44

5+
### Fixes
6+
7+
- Disable sff & frame delay detection on web, linux and windows ([#2182](https://github.com/getsentry/sentry-dart/pull/2182))
8+
- Display refresh rate is locked at 60 for these platforms which can lead to inaccurate metrics
9+
510
### Improvements
611

712
- Capture meaningful stack traces when unhandled errors have empty or missing stack traces ([#2152](https://github.com/getsentry/sentry-dart/pull/2152))

flutter/lib/src/sentry_flutter.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,12 @@ mixin SentryFlutter {
136136

137137
options.addEventProcessor(PlatformExceptionEventProcessor());
138138

139-
options.addPerformanceCollector(SpanFrameMetricsCollector(options));
139+
// Disabled for web, linux and windows until we can reliably get the display refresh rate
140+
if (options.platformChecker.platform.isAndroid ||
141+
options.platformChecker.platform.isIOS ||
142+
options.platformChecker.platform.isMacOS) {
143+
options.addPerformanceCollector(SpanFrameMetricsCollector(options));
144+
}
140145

141146
_setSdk(options);
142147
}

0 commit comments

Comments
 (0)