[PATCH] D15980: [lit] Output the time elapsed for each test when running lit with -v.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 7 15:54:54 PST 2016


jlebar created this revision.
jlebar added reviewers: jroelofs, cmatthews, MatzeB.
jlebar added a subscriber: llvm-commits.
Herald added a subscriber: aemerson.

For example:

  PASS: Clang :: Driver/ppc-features.cpp (346 of 348) in 5775ms
  PASS: Clang :: Driver/fsanitize.c (347 of 348) in 7346ms
  PASS: Clang :: Driver/arm-cortex-cpus.c (348 of 348) in 21752ms

http://reviews.llvm.org/D15980

Files:
  utils/lit/lit/main.py

Index: utils/lit/lit/main.py
===================================================================
--- utils/lit/lit/main.py
+++ utils/lit/lit/main.py
@@ -53,8 +53,9 @@
 
         # Show the test result line.
         test_name = test.getFullName()
-        print('%s: %s (%d of %d)' % (test.result.code.name, test_name,
-                                     self.completed, self.numTests))
+        print('%s: %s (%d of %d) in %0.fms' % (
+                  test.result.code.name, test_name, self.completed,
+                  self.numTests, 1000 * test.result.elapsed))
 
         # Show the test failure output, if requested.
         if (test.result.code.isFailure and self.opts.showOutput) or \


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15980.44285.patch
Type: text/x-patch
Size: 698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160107/6754a38d/attachment.bin>


More information about the llvm-commits mailing list