From 1728f3b38e00a01872a98602a29d70e1cba69d36 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Tue, 14 Oct 2008 21:54:43 +0000 Subject: [PATCH] improved visual scannability --- direct/src/task/TaskProfiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/task/TaskProfiler.py b/direct/src/task/TaskProfiler.py index fb048d431d..bb788cbe86 100755 --- a/direct/src/task/TaskProfiler.py +++ b/direct/src/task/TaskProfiler.py @@ -37,7 +37,7 @@ class TaskTracker: isSpike = True avgSession = self.getAvgSession() s = '\n%s task CPU spike profile (%s) %s\n' % ('=' * 30, self._namePrefix, '=' * 30) - s += ('~' * 60) + '\n' + s += ('|' * 80) + '\n' for sorts in (['cumulative'], ['time'], ['calls']): s += ('-- AVERAGE --\n%s' '-- SPIKE --\n%s' % ( @@ -73,7 +73,7 @@ class TaskTracker: def log(self): if self._avgSession: s = 'task CPU profile (%s):\n' % self._namePrefix - s += ('~' * 60) + '\n' + s += ('|' * 80) + '\n' for sorts in (['cumulative'], ['time'], ['calls']): s += self._avgSession.getResults(sorts=sorts) self.notify.info(s)