repo.or.cz
/
mozilla-1.9
/
m8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Save all modification
[mozilla-1.9/m8.git]
/
tools
/
footprint
/
codemap.pl
blob
81b5fd524476a414c0c0bb7a42edfff87468de21
1
while
(<>) {
2
chomp
;
3
if
(
/^mozilla.exe/
) {
4
$start
=
1
;
5
}
6
if
(
$start
) {
7
chomp
;
8
@fields
=
split
(
/ */
);
9
$bytes
=
$fields
[
2
];
10
$bytes
=~
s/,//g
;
11
$codesize
+=
$bytes
;
12
}
13
}
14
printf
"
%8
.2f K codesize
\n
"
,
toK
(
$codesize
);
15
16
sub
toK
()
17
{
18
return
$_
[
0
] /
1024
;
19
}