tools/footprint/create_dat.awk
author Chris Jones <jones.chris.g@gmail.com>
Mon, 19 Jul 2010 13:33:33 -0500
changeset 47933 62d0fbc0e2ba2a6c64917bc2e8b121107205f7e2
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 578262: Clean up style in and remove build warnings from new-ishly merged e10s code. r=bsmedberg

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; \
          }