aboutsummaryrefslogtreecommitdiff
path: root/fw/mapvis.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-01-05 11:53:52 +0100
committerjaseg <git@jaseg.net>2018-01-05 11:53:52 +0100
commite3094b18d4fc1b5f8e5e7ca146318e501a7a4ff9 (patch)
treee70e8d966a82d84f476b9d05b3b358678f38b42f /fw/mapvis.py
parent31fc78d0e00f9c82f03c88367a7e23b2df918ca6 (diff)
download7seg-e3094b18d4fc1b5f8e5e7ca146318e501a7a4ff9.tar.gz
7seg-e3094b18d4fc1b5f8e5e7ca146318e501a7a4ff9.tar.bz2
7seg-e3094b18d4fc1b5f8e5e7ca146318e501a7a4ff9.zip
Firmware directory reorganization
Diffstat (limited to 'fw/mapvis.py')
-rw-r--r--fw/mapvis.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/fw/mapvis.py b/fw/mapvis.py
deleted file mode 100644
index 4a71222..0000000
--- a/fw/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.
-