Ensure dm reports its progress at least every 4 seconds.

Previously, dm progress reports were based solely on the amount
of tests completed; we would show an update every 500 tests.
However, we have some test types (e.g. SkSL tests on Graphite)
where we can only complete 2-3 tests per second in Debug. Now,
we will emit a progress update if 4 seconds have passed _or_ if
500 tests have executed.

Additionally, the list of "running tests" has historically been
limited to CPU-based tests, since Ganesh- and Graphite-based tests
are not issued on separate threads. This meant that DM would
quickly get into a state where the list of active tests would be
empty, so there was no way to tell which tests were actually being
run. We now display the just-completed test as well; when we have
10 threads running, this is fine, and when we are down to just one
test, this keeps the list from being empty.

Change-Id: I1e608a7582126549207383ac9adfa6a4842ef80d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/787025
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
1 file changed