From 42fb2b47378b74c77245a1b3d2cb189ee7be7050 Mon Sep 17 00:00:00 2001 From: George Hotz Date: Mon, 27 Apr 2020 12:12:31 -0700 Subject: [PATCH] improve printing in profiler --- common/profiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/profiler.py b/common/profiler.py index eab091c7fc..f8262dd83e 100644 --- a/common/profiler.py +++ b/common/profiler.py @@ -39,8 +39,8 @@ class Profiler(): print("******* Profiling *******") for n, ms in sorted(self.cp.items(), key=lambda x: -x[1]): if n in self.cp_ignored: - print("%30s: %7.2f percent: %3.0f IGNORED" % (n, ms*1000.0, ms/self.tot*100)) + print("%30s: %9.2f percent: %3.0f IGNORED" % (n, ms*1000.0, ms/self.tot*100)) else: - print("%30s: %7.2f percent: %3.0f" % (n, ms*1000.0, ms/self.tot*100)) + print("%30s: %9.2f percent: %3.0f" % (n, ms*1000.0, ms/self.tot*100)) print("Iter clock: %2.6f TOTAL: %2.2f" % (self.tot/self.iter, self.tot))