Lines Matching +full:chg +full:- +full:int
5 # inspired by perl Bloat-O-Meter (c) 1997 by Andi Kleen
18 sys.stderr.write("-c categorize output based on symbol type\n")
19 sys.stderr.write("-d Show delta of Data Section\n")
20 sys.stderr.write("-t Show delta of text Section\n")
21 sys.exit(-1)
23 re_NUMBER = re.compile(r'\.[0-9]+')
27 with os.popen("nm --size-sort " + file) as f:
41 sym[name] = sym.get(name, 0) + int(size, 16)
60 delta.append((-old[name], name))
70 d = new.get(name, 0) - old.get(name, 0)
72 if d<0: shrink, down = shrink+1, down-d
81 calc(sys.argv[argc - 1], sys.argv[argc], symbolformat)
84 (add, remove, grow, shrink, up, -down, up-down))
85 print("%-40s %7s %7s %+7s" % (symboltype, "old", "new", "delta"))
87 if d: print("%-40s %7s %7s %+7d" % (n, old.get(n,"-"), new.get(n,"-"), d))
90 percent = (ntot - otot) * 100.0 / otot
93 print("Total: Before=%d, After=%d, chg %+.2f%%" % (otot, ntot, percent))
95 if sys.argv[1] == "-c":
99 elif sys.argv[1] == "-d":
101 elif sys.argv[1] == "-t":