gecko-dev/tools/footprint/create_dat.awk

22 строки
616 B
Awk
Исходник Обычный вид История

2012-05-21 15:12:37 +04:00
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
2000-12-23 03:56:39 +03:00
BEGIN { COUNT = 1
if (TYPE == "") TYPE = "vms";
}
/^[0-9]/ { if (TYPE == "vms") print COUNT, $1;
2001-11-17 08:33:22 +03:00
else if (TYPE == "vmd") print COUNT, $4;
else if (TYPE == "vmx") print COUNT, $2 + $3;
else if (TYPE == "rss") print COUNT, $6;
2000-12-23 03:56:39 +03:00
COUNT = COUNT + 1;
}
/^ / { print COUNT, "0";
COUNT = COUNT + 1; \
}