summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-11-22 21:18:11 -0500
committerNathan Binkert <binkertn@umich.edu>2005-11-22 21:18:11 -0500
commit634a0d8469846b97533aa706ccac5969748cd111 (patch)
treeb8a2144099962ec14f0928d2cfe9830e81d0a3c1 /util
parent690399614c3bc9ee46bee2a86b9558efbbf3b51a (diff)
downloadgem5-634a0d8469846b97533aa706ccac5969748cd111.tar.xz
More changes from cpus named fullX to runX
--HG-- extra : convert_revision : e3c117dc5751be13bd4b014a7fa6df0debfb48f0
Diffstat (limited to 'util')
-rw-r--r--util/stats/profile.py12
1 files changed, 7 insertions, 5 deletions
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)