Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created September 1, 2015 16:05
Show Gist options
  • Save tmcw/c9c0b15e1e89b7894cb0 to your computer and use it in GitHub Desktop.
Save tmcw/c9c0b15e1e89b7894cb0 to your computer and use it in GitHub Desktop.
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 = ''
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