idle, keep track of the fraction of time we're not idle. This works better because the default processor state is idle, and the default stat value is 0. Keep the stat as idleFraction which is a formula that is equal to 1 - notIdleFraction --HG-- extra : convert_revision : 331c2e46f45ae0abda46988567ac2c4f7c42ccad |
||
---|---|---|
.. | ||
full_cpu | ||
memtest | ||
simple_cpu | ||
base_cpu.cc | ||
base_cpu.hh | ||
exec_context.cc | ||
exec_context.hh | ||
exetrace.cc | ||
exetrace.hh | ||
inst_seq.hh | ||
intr_control.cc | ||
intr_control.hh | ||
pc_event.cc | ||
pc_event.hh | ||
static_inst.cc | ||
static_inst.hh |