stats: Silence unused power stats
authorAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 6 Jun 2016 16:16:43 +0000 (17:16 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Mon, 6 Jun 2016 16:16:43 +0000 (17:16 +0100)
commitd4342aff4ce347ad8ab5a01fdd41993106cd3ece
treed028b56fd575ae131411227856878116c66afcab
parent5350879f499470a2683dfec6cff021dd7ac20fa6
stats: Silence unused power stats

The power stats are currently very noisy even if no power model has
been loaded. Silence stats that are either zero or nan.

Change-Id: I7d0220c2fcf01131084a219228f140cfaddaf95b
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
src/sim/clocked_object.cc