tools/footprint/create_dat.awk
author Andreas Gal <gal@uci.edu>
Sat, 31 May 2008 09:53:16 -0700
changeset 17187 1805b63c9f77b324f91468614f00ee6b9e4a4d71
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Fixed a bug that triggered the tracer at TRACE_THRESHOLD/2 already.

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