diff options
author | jaseg <git@jaseg.net> | 2018-11-17 11:35:25 +0900 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2018-11-17 11:35:25 +0900 |
commit | 194bd7fdb9c0ffd66f7c574c2854f396c2a8ab93 (patch) | |
tree | 56b6a754a8d67c254d52c4bba2f66f2dca1c09fc /mapvis.py | |
parent | 155a29ce08fc019faefbf4ee3bfa0ea82c8501c3 (diff) | |
download | secure-hid-194bd7fdb9c0ffd66f7c574c2854f396c2a8ab93.tar.gz secure-hid-194bd7fdb9c0ffd66f7c574c2854f396c2a8ab93.tar.bz2 secure-hid-194bd7fdb9c0ffd66f7c574c2854f396c2a8ab93.zip |
Initial schematic commit
Diffstat (limited to 'mapvis.py')
-rw-r--r-- | mapvis.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/mapvis.py b/mapvis.py deleted file mode 100644 index 4a71222..0000000 --- a/mapvis.py +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env python3 - -from matplotlib import pyplot as plt - -f, ax = plt.subplots(1, figsize=(3, 8)) -bar_width = 1 - -ax.bar([-bar_width/2], top, bottom=bottom, width=bar_width, label='foo') -ax.set_xticks([0], [filename]) -ax.set_ylabel('Memory usage (B)') -ax.set_xlabel('') - -ax.set_xlim([-bar_width/2, bar_width/2]) -ax.set_ylim([0, mem_max]) - -if __name__ == '__main__': - import argparse - import mapparse - parser = argparse.ArgumentParser(description='Visualize program memory usage using GCC map file') - parser.add_argument('mapfile', type=argparse.FileType('r'), description='Input GCC .map file') - args = parser.parse_args() - - mapping = mapparse.MapFile(args.mapfile.read()) - mapping. - |