Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
2302a5ae
Kaydet (Commit)
2302a5ae
authored
Tem 10, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add script bin/includebloat
Change-Id: I086052c9a4dd2a216e0af153c43e98eec85a4600
üst
6a6b91da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
includebloat.awk
bin/includebloat.awk
+34
-0
No files found.
bin/includebloat.awk
0 → 100755
Dosyayı görüntüle @
2302a5ae
#!/usr/bin/gawk -f
BEGIN
{
cmd
=
"find workdir/Dep/CxxObject/ -name *.d | xargs cat"
while
((
cmd
|
getline
)
>
0
)
{
if
(
$0
~
/^ .*
\\
$/
)
{
gsub
(
/^ /
,
""
);
gsub
(
/ *
\\
$/
,
""
);
includes
[
$1
]
++
if
(
$2
)
{
# GCC emits 2 per line if short enough!
includes
[
$2
]
++
}
}
}
exit
}
END
{
for
(
inc
in
includes
)
{
cmd
=
"wc -c "
inc
if
((
cmd
|
getline
)
<
0
)
print
"ERROR on: "
cmd
sizes
[
inc
]
=
$1
# $0 is wc -c output, $1 is size
totals
[
inc
]
=
$1
*
includes
[
inc
]
totalsize
+=
totals
[
inc
]
close
(
cmd
)
}
PROCINFO
[
"sorted_in"
]
=
"@val_num_desc"
print
"sum total bytes included: "
totalsize
for
(
inc
in
totals
)
{
print
totals
[
inc
],
sizes
[
inc
],
includes
[
inc
],
inc
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment