[lit] Print slowest test first when timing tests
authorJulian Lettner <julian.lettner@apple.com>
Wed, 8 Apr 2020 01:18:33 +0000 (18:18 -0700)
committerJulian Lettner <julian.lettner@apple.com>
Wed, 8 Apr 2020 01:18:33 +0000 (18:18 -0700)
commit09f345080edbc914e2d864e9ccf50c94d90d35c5
tree3f27b35629e4cdfba44e8bcd7443cb9979814081
parent2ac96d61c2ff21fca6dd22bf1b9545dbd450e4b9
[lit] Print slowest test first when timing tests

lit supports `--time-tests` which will report the 20 slowest tests and
print a nice histogram for test times.  This change prints this list and
the histogram rows by decreasing test times.  After all, we are most
interested in the slowest tests.
llvm/utils/lit/lit/util.py