#!/usr/bin/python # # Find the top 100 functions that are repeated in multiple .o files, so we can out-of-line those # # import subprocess from collections import defaultdict # the odd bash construction here is because some of the .o files returned by find are not object files # and I don't want xargs to stop when it hits an error a = subprocess.Popen("find instdir/program/ -name *.so | xargs echo nm --radix=d --size-sort --demangle | bash", stdout=subprocess.PIPE, shell=True) #xargs sh -c "somecommand || true" nameDict = defaultdict(int) with a.stdout as txt: for line in txt: line = line.strip() idx1 = line.find(" ") idx2 = line.find(" ", idx1 + 1) name = line[idx2:] nameDict[name] += 1 sizeDict = defaultdict(set) for k, v in nameDict.iteritems(): sizeDict[v].add(k) cnt = 0 for k in sorted(list(sizeDict), reverse=True): print k for v in sizeDict[k]: print v cnt += 1 if cnt > 100 : break #first = sorted(list(sizeDict))[-1] #print first #include/vcl/ITiledRenderable.hxx # why is gaLOKPointerMap declared inside this header? option> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/animations
AgeCommit message (Expand)Author
2019-05-23tdf#42949 Fix IWYU warnings in: animations/ eventattacher/ i18nutil/Gabor Kelemen
2019-04-06clang-tidy modernize-avoid-c-arrays in animationsArkadiy Illarionov
2019-03-27Remove unused using declarations in directories [a-d]*Gabor Kelemen
2018-09-17New loplugin:externalStephan Bergmann
2018-09-05loplugin:simplifyconstruct in accessibility..bridgesNoel Grandin
2018-07-09Add missing sal/log.hxx headersGabor Kelemen
2017-12-11loplugin:salcall fix functionsNoel Grandin
2017-11-04Replace lists by vectors in animation parts (sd/animations)Julien Nabet
2017-06-15use more SAL_N_ELEMENTS part 3Noel Grandin
2017-05-16loplugin:comparisonwithconstant in avmediaNoel Grandin
2017-04-21gbuild: Remove MSVC 2013 legacy codeDavid Ostrovsky
2017-03-03Fix typosAndrea Gelmini
2017-02-15Drop :: prefix from std in [a-b]*/Tor Lillqvist
2017-02-06Add missing #includesStephan Bergmann
2017-02-01makeAny->Any in accessibility..avmediaNoel Grandin