tools/footprint/create_dat.awk
author Mitchell Field <mitchell.field@live.com.au>
Sat, 05 Jun 2010 21:18:12 -0400
changeset 43144 2d90590dabe63ad9d6323376e6a1138add81e1cb
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 542222 - Reduce recursion in netwerk makefiles.

BEGIN     { COUNT = 1
            if (TYPE == "") TYPE = "vms";
          }

/^[0-9]/  { if      (TYPE == "vms") print COUNT, $1;
            else if (TYPE == "vmd") print COUNT, $4;
            else if (TYPE == "vmx") print COUNT, $2 + $3;
            else if (TYPE == "rss") print COUNT, $6;

            COUNT = COUNT + 1;
          }

/^ /      { print COUNT, "0";
            COUNT = COUNT + 1; \
          }