Parameterize CoverageCollector with a library name predicate#36774
Parameterize CoverageCollector with a library name predicate#36774jiahaog merged 1 commit intoflutter:masterfrom jiahaog:parameterize-coverage-predicate
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. While there are exceptions to this rule, if this patch modifies code it is probably not an exception. Reviewers: Read the Tree Hygine page and make sure this patch meets those guidelines before LGTMing. /cc @dnfield |
|
@jiahaog can you take a look at the analyzer failures? |
An optimization to the coverage collection speed was added in #30811. This commit further expands on it to parameterize the CoverageCollector with a custom predicate, allowing internal use cases to filter the RPC calls to the Dart VM based on scripts of interest to coverage collection.
|
My bad, I wasn't familiar with how the checks work. |
Codecov Report
@@ Coverage Diff @@
## master #36774 +/- ##
==========================================
- Coverage 55.88% 55.73% -0.16%
==========================================
Files 190 190
Lines 17590 17580 -10
==========================================
- Hits 9831 9798 -33
- Misses 7759 7782 +23
Continue to review full report at Codecov.
|
jonahwilliams
left a comment
There was a problem hiding this comment.
LGTM
To ensure this doesn't regress coverage time can you verify that the flutter_test performance doesn't regress with this change? https://flutter-dashboard.appspot.com/benchmarks.html.
This can be tested with:
cd dev/devicelab
dart bin/run.dart -t flutter_test_performance.dart
|
Do those benchmarks depend on the platform I'm running them on (I'm running them on MacOS)? I ran them and they are all slightly faster compared to those on https://flutter-dashboard.appspot.com/benchmarks.html. |
|
The benchmarks are run on an overheated Linux box. You'd need to compare before/after on the same machine |
|
The benchmarks are relatively similar, I think this change is safe to merge: |
…#36774) An optimization to the coverage collection speed was added in flutter#30811. This commit further expands on it to parameterize the CoverageCollector with a custom predicate, allowing internal use cases to filter the RPC calls to the Dart VM based on scripts of interest to coverage collection.
An optimization to the coverage collection speed was added in #30811. This commit further expands on it to parameterize the CoverageCollector with a custom predicate, allowing internal use cases to filter the RPC calls to the Dart VM based on scripts of interest to coverage collection.