From 634a0d8469846b97533aa706ccac5969748cd111 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Tue, 22 Nov 2005 21:18:11 -0500 Subject: More changes from cpus named fullX to runX --HG-- extra : convert_revision : e3c117dc5751be13bd4b014a7fa6df0debfb48f0 --- util/stats/profile.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'util') diff --git a/util/stats/profile.py b/util/stats/profile.py index 57b854a30..0f51d643e 100644 --- a/util/stats/profile.py +++ b/util/stats/profile.py @@ -285,7 +285,9 @@ class Profile(object): if job.system is None: raise AttributeError, 'The job must have a system set' - data = self.getdata(job.name, '%s.full%d' % (job.system, self.cpu)) + run = job.name + cpu = '%s.run%d' % (job.system, self.cpu) + data = self.getdata(run, cpu) if not data: return [ 0.0 for c in self.categories ] @@ -307,7 +309,7 @@ class Profile(object): jobs = [ job for job in jobfile.jobs() ] for job in jobs: - cpu = '%s.full%d' % (job.system, self.cpu) + cpu = '%s.run%d' % (job.system, self.cpu) symbols = self.getdata(job.name, cpu) if not symbols: continue @@ -321,7 +323,7 @@ class Profile(object): jobs = [ job for job in jobfile.jobs() ] for job in jobs: - cpu = '%s.full%d' % (job.system, self.cpu) + cpu = '%s.run%d' % (job.system, self.cpu) symbols = self.getdata(job.name, cpu) if not symbols: continue @@ -337,14 +339,14 @@ class Profile(object): thejobs = [] for job in jobs: - cpu = '%s.full%d' % (job.system, self.cpu) + cpu = '%s.run%d' % (job.system, self.cpu) symbols = self.getdata(job.name, cpu) if symbols: thejobs.append(job) maxsymlen = max(maxsymlen, symbols.maxsymlen) for job in thejobs: - cpu = '%s.full%d' % (job.system, self.cpu) + cpu = '%s.run%d' % (job.system, self.cpu) symbols = self.getdata(job.name, cpu) print job.name symbols.display(limit=limit, maxsymlen=maxsymlen) -- cgit v1.2.3