Created
September 1, 2015 16:05
-
-
Save tmcw/c9c0b15e1e89b7894cb0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
section = '' | |
print "o, size" | |
for line in open('breakdown.txt'): | |
m = re.search('libMapbox.a\(([\w\.]+)\):', line) | |
if m: | |
section = m.group(1) | |
total = re.search('total (\d+)', line) | |
if total and section: | |
print "%s, %s" % (section, total.group(1)) | |
section = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size -m libMapbox.a > breakdown.txt | |
python parse.py > data.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment