-
-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(performance): report total frames, frame delay, slow & frozen fr…
…ames (#2106) * Add frame tracking option * Current state * Update * Update * Update * Update * Update * Update Changelog * Update * update * Format * Update * Remove _isFinished * clean up * format * Clean up * Add native channel to span frame collector * Clean up * Update * Fix has scheduled frame * Clean up * Clean up * Update * Format * Revert main.dart * Docs * Update docs and naming * Improve naming * Move adding performance collector to _initDefaultValues * Implement fallback display refreshrate on Android using WindowManager.DefaultDisplay * Calculate frame metrics in one loop and use SplayTreeSet for the active spans * Use clock instead of getUtcDateTime * Remove span directly * Merge mocks from main * Fix merge stuff * increase test ranges * Increase ranges and run format * Remove unnecessary test * improve test * Fix ktlitn * See if this fixes windows test * see if this fixes * log infos why it's failing * Fix tests * increase delay * Fix test (at least on web) * try with future.foreach * try fix * Fix * fix * fix * fix? * Remove enablesFrameTracking checking in onSpanFinished * Fix macos refresh rate fetching * Fix ktlint * fix dart analyze * Fix analyze * Update implementation * Break early out of metrics calculation due to sorted frames * Update macos impl * Use core graphics * swift lint * Add comment why we don't use CADisplayLink in macos
- Loading branch information
Showing
18 changed files
with
779 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import '../sentry.dart'; | ||
|
||
abstract class PerformanceCollector {} | ||
|
||
/// Used for collecting continuous data about vitals (slow, frozen frames, etc.) | ||
/// during a transaction/span. | ||
abstract class PerformanceContinuousCollector extends PerformanceCollector { | ||
Future<void> onSpanStarted(ISentrySpan span); | ||
|
||
Future<void> onSpanFinished(ISentrySpan span, DateTime endTimestamp); | ||
|
||
void clear(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.