scripts: Added codemap.py
Like codemapd3.py, but with an ascii renderer. This is basically just codemapd3.py and treemap.py smooshed together. It's not the cleanest, but it gets the job done. codemap.py is not the most critical of scripts. Unfortunately callgraph and stack/ctx info are difficult (impossible?) to render usefully in ascii, but we can at least do the script calling, parsing, namespacing, etc, necessary to create the code cost tilemap.
This commit is contained in:
+3
-1
@@ -841,7 +841,9 @@ def main(csv_paths, *,
|
||||
t.label = punescape(labels_[i, t.key], t.attrs)
|
||||
|
||||
# scale width/height if requested now that we have our data
|
||||
if to_scale and (width is None or height is None) and tile.value != 0:
|
||||
if (to_scale
|
||||
and (width is None or height is None)
|
||||
and tile.value != 0):
|
||||
# scale if needed
|
||||
if braille:
|
||||
xscale, yscale = 2, 4
|
||||
|
||||
Reference in New Issue
Block a user