diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2013-03-19 21:13:51 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2013-03-19 21:13:51 (GMT) |
commit | cf97db0ea4d1ea983db38df85984034b49fa4f77 (patch) | |
tree | b6d69945b24ec8da93f0bef7ccf4dfdbe1d920a2 /plugins/python/samples | |
parent | e7a85861ba8bcd00ceb7bf9e47f4eadccd48ce3f (diff) |
Defined the first steps towards new graph renderings.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@345 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'plugins/python/samples')
-rw-r--r-- | plugins/python/samples/basic_blocks.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/python/samples/basic_blocks.py b/plugins/python/samples/basic_blocks.py index 583723c..90f3a2c 100644 --- a/plugins/python/samples/basic_blocks.py +++ b/plugins/python/samples/basic_blocks.py @@ -43,14 +43,17 @@ def visit_block(block, order, indent): if isinstance(block, FlowBlock): start, end = block.boundary_addresses + rank = block.rank links = block.get_links_block() if links != None: laddr = get_c_address_of_pygobject(links) - print '%s- flow %s : 0x%08lx -> 0x%08lx (links = %s)' % (padding, addr, start, end, laddr) + print '%s- flow %s (rank=%d) : 0x%08lx -> 0x%08lx (links = %s)' \ + % (padding, addr, rank, start, end, laddr) else: - print '%s- flow %s : 0x%08lx -> 0x%08lx' % (padding, addr, start, end) + print '%s- flow %s (rank=%d) : 0x%08lx -> 0x%08lx' \ + % (padding, addr, rank, start, end) else: |