Skip to content

fix: total frame rounding and reject invalid frame measurements#2308

Merged
buenaflor merged 4 commits into
mainfrom
fix/reject-invalid-frame-data
Sep 25, 2024
Merged

fix: total frame rounding and reject invalid frame measurements#2308
buenaflor merged 4 commits into
mainfrom
fix/reject-invalid-frame-data

Conversation

@buenaflor

@buenaflor buenaflor commented Sep 25, 2024

Copy link
Copy Markdown
Contributor

📜 Description

in some edge cases total frames is less than slow frames, this is due to rounding down instead of up

💡 Motivation and Context

Fixes #2304

@codecov

codecov Bot commented Sep 25, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 90.87%. Comparing base (8a111a9) to head (cedd46a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
flutter/lib/src/span_frame_metrics_collector.dart 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2308      +/-   ##
==========================================
+ Coverage   88.11%   90.87%   +2.75%     
==========================================
  Files         247       73     -174     
  Lines        8591     2377    -6214     
==========================================
- Hits         7570     2160    -5410     
+ Misses       1021      217     -804     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@buenaflor buenaflor changed the title reject invalid frame measurements fix: total frame rounding and reject invalid frame measurements Sep 25, 2024
@buenaflor
buenaflor marked this pull request as ready for review September 25, 2024 13:56
@github-actions

Copy link
Copy Markdown
Contributor

iOS Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1252.98 ms 1277.96 ms 24.98 ms
Size 8.38 MiB 9.74 MiB 1.36 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
061fed2 1232.08 ms 1255.17 ms 23.08 ms
3d305b9 1230.29 ms 1247.39 ms 17.10 ms
0aaa46e 1256.39 ms 1276.41 ms 20.02 ms
1cdcacf 1208.35 ms 1235.13 ms 26.77 ms
7e30648 1241.43 ms 1255.76 ms 14.33 ms
a609134 1254.50 ms 1265.08 ms 10.58 ms
f79eecf 1210.25 ms 1221.65 ms 11.40 ms
d5fb969 1228.79 ms 1256.17 ms 27.38 ms
30c1193 1227.20 ms 1235.00 ms 7.80 ms
21562c5 1235.43 ms 1254.00 ms 18.57 ms

App size

Revision Plain With Sentry Diff
061fed2 8.38 MiB 9.71 MiB 1.34 MiB
3d305b9 8.33 MiB 9.63 MiB 1.29 MiB
0aaa46e 8.29 MiB 9.38 MiB 1.09 MiB
1cdcacf 8.32 MiB 9.39 MiB 1.06 MiB
7e30648 8.29 MiB 9.36 MiB 1.07 MiB
a609134 8.16 MiB 9.16 MiB 1.01 MiB
f79eecf 8.29 MiB 9.36 MiB 1.07 MiB
d5fb969 8.33 MiB 9.64 MiB 1.31 MiB
30c1193 8.28 MiB 9.34 MiB 1.06 MiB
21562c5 8.29 MiB 9.36 MiB 1.07 MiB

Previous results on branch: fix/reject-invalid-frame-data

Startup times

Revision Plain With Sentry Diff
907ab53 1229.72 ms 1260.31 ms 30.59 ms

App size

Revision Plain With Sentry Diff
907ab53 8.38 MiB 9.74 MiB 1.36 MiB

@github-actions

Copy link
Copy Markdown
Contributor

Android Performance metrics 🚀

  Plain With Sentry Diff
Startup time 383.44 ms 404.38 ms 20.94 ms
Size 6.49 MiB 7.56 MiB 1.07 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
2d4fd8b 376.67 ms 456.88 ms 80.21 ms
3e33891 313.60 ms 379.51 ms 65.91 ms
1cdcacf 389.94 ms 463.53 ms 73.59 ms
31b2afb 397.04 ms 475.09 ms 78.04 ms
3e9fb0e 329.14 ms 359.16 ms 30.02 ms
211a7aa 324.19 ms 393.26 ms 69.07 ms
a094100 388.02 ms 459.50 ms 71.48 ms
6d317ea 303.46 ms 356.06 ms 52.60 ms
9555112 448.81 ms 488.89 ms 40.08 ms
5d2b46d 307.74 ms 349.85 ms 42.11 ms

App size

Revision Plain With Sentry Diff
2d4fd8b 6.27 MiB 7.20 MiB 958.59 KiB
3e33891 6.16 MiB 7.14 MiB 1007.46 KiB
1cdcacf 6.33 MiB 7.26 MiB 949.77 KiB
31b2afb 6.34 MiB 7.28 MiB 966.36 KiB
3e9fb0e 5.94 MiB 6.95 MiB 1.01 MiB
211a7aa 6.06 MiB 7.03 MiB 997.24 KiB
a094100 5.94 MiB 6.96 MiB 1.02 MiB
6d317ea 5.94 MiB 6.92 MiB 1001.74 KiB
9555112 6.52 MiB 7.59 MiB 1.06 MiB
5d2b46d 6.16 MiB 7.13 MiB 1000.82 KiB

Previous results on branch: fix/reject-invalid-frame-data

Startup times

Revision Plain With Sentry Diff
907ab53 522.07 ms 576.56 ms 54.49 ms

App size

Revision Plain With Sentry Diff
907ab53 6.49 MiB 7.56 MiB 1.07 MiB

@buenaflor
buenaflor merged commit b66cc27 into main Sep 25, 2024
@buenaflor
buenaflor deleted the fix/reject-invalid-frame-data branch September 25, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flutter: measurements.frames_total less than measurements.frames_slow

2 participants