[LNT] r349079 - Make timers easier to find in the logs

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 13 12:04:45 PST 2018


Author: cmatthews
Date: Thu Dec 13 12:04:45 2018
New Revision: 349079

URL: http://llvm.org/viewvc/llvm-project?rev=349079&view=rev
Log:
Make timers easier to find in the logs

I'd like to be able to grep out all the timers for analysis.

Modified:
    lnt/trunk/lnt/testing/util/commands.py

Modified: lnt/trunk/lnt/testing/util/commands.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/testing/util/commands.py?rev=349079&r1=349078&r2=349079&view=diff
==============================================================================
--- lnt/trunk/lnt/testing/util/commands.py (original)
+++ lnt/trunk/lnt/testing/util/commands.py Thu Dec 13 12:04:45 2018
@@ -15,7 +15,7 @@ def timed(func):
         result = func(*args, **kw)
         t_end = time.time()
         delta = t_end - t_start
-        msg = '%r %2.2f sec' % (func.__name__, delta)
+        msg = 'timer: %r %2.2f sec' % (func.__name__, delta)
         if delta > 10:
             logger.warning(msg)
         else:




More information about the llvm-commits mailing list