From add6b79bd70594181869b6e00683ead3dd27ac96 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Mon, 14 Jan 2019 00:18:47 +0100 Subject: Displayed extra information about basic blocks. --- python/basic_blocks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/basic_blocks.py b/python/basic_blocks.py index f77808b..74b1d3d 100644 --- a/python/basic_blocks.py +++ b/python/basic_blocks.py @@ -23,7 +23,11 @@ def show_block(blk, grp): first, last = blk.boundaries - print('Block @ 0x%x: %s - %s' % (first.range.addr.phys, first.keyword, last.keyword), end='') + #misc = '*' if len(first.sources) == 0 else ' ' + + misc = ' [%u]' % blk.rank + + print('%s Block @ 0x%x: %s - %s' % (misc, first.range.addr.phys, first.keyword, last.keyword), end='') for db, dt in blk.destinations: print(' |-> 0x%x (%s)' % (db.boundaries[0].range.addr.phys, link_type_to_str(dt)), end='') -- cgit v0.11.2-87-g4458