tools/footprint/create_dat.awk
author Boris Zbarsky <bzbarsky@mit.edu>
Mon, 11 May 2009 22:04:58 -0400
changeset 28217 de33f2e0b22fac8f1dfa8ba76aa32266735001f2
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 480452. Make {ib} splits behave the same way with regard to margins, borders, and padding as inline frames that just have a line-break happening inside them do. r+sr=dbaron

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