Subversion Repositories freemyipod

Rev

Rev 606 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 606 Rev 609
Line 456... Line 456...
456
            self.logger.info("%s:\n" % thread.name, 2)
456
            self.logger.info("%s:\n" % thread.name, 2)
457
            self.logger.info("Threadstruct address: 0x%X\n" % thread.addr, 4)
457
            self.logger.info("Threadstruct address: 0x%X\n" % thread.addr, 4)
458
            self.logger.info("Thread type: %s\n" % thread.thread_type, 4)
458
            self.logger.info("Thread type: %s\n" % thread.thread_type, 4)
459
            self.logger.info("Thread state: %s\n" % thread.state, 4)
459
            self.logger.info("Thread state: %s\n" % thread.state, 4)
460
            if thread.block_type != "THREAD_NOT_BLOCKED":
460
            if thread.block_type != "THREAD_NOT_BLOCKED":
461
                self.logger.info("Block type: %s\n" % thread.block_type, 6)
461
                self.logger.info("Block type: %s\n" % thread.block_type, 4)
462
                if thread.blocked_by != 0:
462
                if thread.block_type == "THREAD_BLOCK_MUTEX":
463
                    self.logger.info("Blocked by: 0x%X\n" % thread.blocked_by, 6)
463
                    self.logger.info("Blocked by mutex: 0x%X\n" % thread.blocked_by, 6)
-
 
464
                    self.logger.info("Owner: %s (0x%X)\n" % (thread.blocked_by.owner.name, thread.blocked_by.owner), 8)
-
 
465
                elif thread.block_type == "THREAD_BLOCK_WAKEUP":
-
 
466
                    self.logger.info("Blocked by wakeup: 0x%X\n" % thread.blocked_by, 6)
464
            self.logger.info("Priority: %d/255\n" % thread.priority, 4)
467
            self.logger.info("Priority: %d/255\n" % thread.priority, 4)
465
            self.logger.info("Current CPU load: %.1f%%\n" % ((thread.cpuload * 100) / 255.), 4)
468
            self.logger.info("Current CPU load: %.1f%%\n" % ((thread.cpuload * 100) / 255.), 4)
466
            self.logger.info("CPU time (total): %s\n" % datetime.timedelta(microseconds = thread.cputime_total), 4)
469
            self.logger.info("CPU time (total): %s\n" % datetime.timedelta(microseconds = thread.cputime_total), 4)
467
            self.logger.info("Stack address: 0x%X\n" % thread.stack, 4)
470
            self.logger.info("Stack address: 0x%X\n" % thread.stack, 4)
468
            self.logger.info("Registers:\n", 4)
471
            self.logger.info("Registers:\n", 4)