inorder-stats: add prereq to basic stat

only show requests processed when the resource is actually in use
This commit is contained in:
Korey Sewell 2010-01-31 18:29:06 -05:00
parent 0b29c2d057
commit 349d86c0e4
2 changed files with 4 additions and 2 deletions

View file

@ -81,7 +81,8 @@ Resource::regStats()
instReqsProcessed instReqsProcessed
.name(name() + ".instReqsProcessed") .name(name() + ".instReqsProcessed")
.desc("Number of Instructions Requests that completed in " .desc("Number of Instructions Requests that completed in "
"this resource."); "this resource.")
.prereq(instReqsProcessed);
} }
int int

View file

@ -52,7 +52,8 @@ InstBuffer::regStats()
{ {
instsBypassed instsBypassed
.name(name() + ".instsBypassed") .name(name() + ".instsBypassed")
.desc("Number of Instructions Bypassed."); .desc("Number of Instructions Bypassed.")
.prereq(instsBypassed);
Resource::regStats(); Resource::regStats();
} }