freemyipod r324 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r323‎ | r324 | r325 >
Date:00:17, 13 December 2010
Author:theseven
Status:new
Tags:
Comment:
embios.py: Show CPU load in getprocinfo
Modified paths:
  • /embios/trunk/tools/embios.py (modified) (history)

Diff [purge]

Index: embios/trunk/tools/embios.py
@@ -480,6 +480,7 @@
481481 self.logger.info(" Thread type: "+thread.type+"\n")
482482 self.logger.info(" Thread state: "+thread.state+"\n")
483483 self.logger.info(" Priority: "+str(thread.priority)+"/256\n")
 484+ self.logger.info(" Current CPU load: "+str((thread.cpuload*100)/255)+"%\n")
484485 self.logger.info(" CPU time (total): "+str(datetime.timedelta(microseconds=thread.cputime_total))+"\n")
485486 self.logger.info(" Stack address: "+self._hex(thread.stackaddr)+"\n")
486487 self.logger.info(" Registers:\n")