File:  [gforth] / gforth / vmgen-ex / stat.awk
Revision 1.1: download - view: text, annotated - select for diffs
Tue May 1 10:20:56 2001 UTC (18 years, 6 months ago) by anton
Branches: MAIN
CVS tags: v0-7-0, v0-6-2, v0-6-1, v0-6-0, HEAD
fixed profiling
completed README

    1: BEGIN {
    2:   FS="\t";
    3: }
    4: {
    5:   dyn[$2] += $1;
    6:   stat[$2]++;
    7:   files[$2] += (FILENAME!=filename[$2]);
    8:   filename[$2] = FILENAME;
    9: }
   10: END {
   11:   for (i in dyn)
   12:     printf("%7d\t%7d\t%15d\t%s\n",files[i],stat[i],dyn[i],i);
   13: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>