From 22b168cad70919ea2e3bc962dc26556839531bec Mon Sep 17 00:00:00 2001 From: barrierye Date: Thu, 2 Jul 2020 19:26:41 +0800 Subject: [PATCH] fix profiler.py --- python/pipeline/profiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pipeline/profiler.py b/python/pipeline/profiler.py index bf96bcbd..49eabf5b 100644 --- a/python/pipeline/profiler.py +++ b/python/pipeline/profiler.py @@ -58,7 +58,7 @@ class TimeProfiler(object): print_str += "{}_{}:{} ".format(name, tag, timestamp) else: tmp[name] = (tag, timestamp) - print_str += "\n" + print_str = "\n{}\n".format(print_str) sys.stderr.write(print_str) for name, item in tmp.items(): tag, timestamp = item -- GitLab