Changeset 44
- Timestamp:
- 24/06/07 05:40:28 (17 months ago)
- Files:
-
- 1 modified
-
trunk/pycallgraph.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pycallgraph.py
r41 r44 74 74 'color': '%(col)s', 75 75 }, 76 'node_colo r': colourize_node,77 'edge_colo r': colourize_edge,76 'node_colour': colourize_node, 77 'edge_colour': colourize_edge, 78 78 'dont_exclude_anything': False, 79 79 } … … 277 277 for func, hits in func_count.items(): 278 278 calls_frac, total_time_frac, total_time = frac_calculation(func, hits) 279 col = settings['node_colo r'](calls_frac, total_time_frac)279 col = settings['node_colour'](calls_frac, total_time_frac) 280 280 attribs = ['%s="%s"' % a for a in settings['node_attributes'].items()] 281 281 node_str = '"%s" [%s];' % (func, ','.join(attribs)) … … 287 287 calls_frac, total_time_frac, totla_time = \ 288 288 frac_calculation(to_key, to_val) 289 col = settings['edge_colo r'](calls_frac, total_time_frac)289 col = settings['edge_colour'](calls_frac, total_time_frac) 290 290 edge = '[ color = "%s" ]' % col 291 291 ret.append('"%s"->"%s" %s' % (fr_key, to_key, edge))