085477c494
Sorry about the size of the CL. I can split it up if you'd like. In order to do this I added a listener to SuggestionBuilder so that we could capture the data as suggestions are being built. If it turns out to be a performance problem we can remove it before shipping it, but it should only impact the new relevance path, which isn't being used yet in production. This splits the "worst" and "slowest" (formerly "longest") results into three groups. I might find it useful to split them out into more groups later, but I think this gives me a good place to start. This also adds a new flag to disable running completions using the old relevance values. That cuts the time to get data by 1/3 to 1/2. All off these changes led to a fair bit of refactoring to try to reduce duplication (both existing and what would have been added if I hadn't done the refactoring). Change-Id: I5e8dcbba2c01b3665eb486f183f6ad8014285413 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148002 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>