3 # Find the top 100 functions that are repeated in multiple .o files, so we can out-of-line those
8 from collections
import defaultdict
10 # the odd bash construction here is because some of the .o files returned by find are not object files
11 # and I don't want xargs to stop when it hits an error
12 a
= subprocess
.Popen("find instdir/program/ -name *.so | xargs echo nm --radix=d --size-sort --demangle | bash", stdout
=subprocess
.PIPE
, shell
=True)
14 #xargs sh -c "somecommand || true"
16 nameDict
= defaultdict(int)
21 idx2
= line
.find(" ", idx1
+ 1)
25 sizeDict
= defaultdict(set)
26 for k
, v
in nameDict
.iteritems():
30 for k
in sorted(list(sizeDict
), reverse
=True):
37 #first = sorted(list(sizeDict))[-1]
41 #include/vcl/ITiledRenderable.hxx
42 # why is gaLOKPointerMap declared inside this header?