flutter/dev/benchmarks/microbenchmarks/lib
Kate Lovett 8ba459ce9f
Update VelocityTracker (4) (#139166)
This updates the implementation to use the stopwatch from the Clock object and pipes it through to the TestWidgetsFlutterBinding so it will be kept in sync with FakeAsync.

Relands https://github.com/flutter/flutter/pull/138843 attempted to reland https://github.com/flutter/flutter/pull/137381 which attempted to reland #132291
Fixes https://github.com/flutter/flutter/issues/97761

1. The original change was reverted due to flakiness it introduced in tests that use fling gestures.
  * Using a mocked clock through the test binding fixes this now
2. It was reverted a second time because a change at tip of tree broke it, exposing memory leaks, but it was not rebased before landing. 
  * These leaks are now fixed
3. It was reverted a third time, because we were so excellently quick to revert those other times, that we did not notice the broken benchmark that only runs in postsubmit.
  * The benchmark is now fixed
2023-11-29 14:59:13 +00:00
..
foundation [framework,web] add FlutterTimeline and semantics benchmarks that use it (#128366) 2023-06-21 21:37:02 +00:00
geometry Export public API types from animation and physics libraries (#106757) 2022-06-29 05:26:09 +00:00
gestures Update VelocityTracker (4) (#139166) 2023-11-29 14:59:13 +00:00
language Enable unreachable_from_main lint - it is stable now!!1 (#129854) 2023-07-06 00:09:01 +00:00
stocks Fix divide-by-zero crash in animation_bench benchmark (#137539) 2023-10-31 15:10:53 +00:00
ui Update collection-fors to prefer final (as per updated prefer_final_in_for_each) (#127511) 2023-05-26 23:34:36 +00:00
common.dart Remove new keyword in a few files (#104438) 2022-06-06 16:08:06 -07:00