jdk/test/sun/tools/jstat/classloadOutput1.awk
author jjg
Mon, 25 Nov 2013 17:42:28 -0800
changeset 21894 3535c1819067
parent 5778 ca3811dc046d
child 22562 e909d64b8dd8
permissions -rw-r--r--
8028318: [doclint] doclint will reject existing user-written doc comments using custom tags that follow the recommended rules Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5778
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
     1
#
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
     2
# matching the following output specified as a pattern that verifies
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
     3
# that the numerical values conform to a specific pattern, rather than
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
     4
# specific values.
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
     5
#
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
     6
# Loaded       Time Inited       Time Shared  Kbytes   LoadTime SysClass  Kbytes   LoadTime     Lookup      Parse Linked       Time Verified       Time AppClass  Kbytes      AppCL DefineClass       Time FindClass       Time Delegation URLCL Read
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
     7
#    956      0.115    777      0.032      0     0.0      0.000      956  3437.5      0.085      0.013      0.045    918      0.032      917      0.011       13     1.0      0.003           1      0.000         1      0.004      0.005      0.000
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
     8
#
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
     9
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    10
BEGIN	{
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    11
	    headerlines=0; datalines=0; totallines=0
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    12
	}
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    13
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    14
/^Loaded       Time Inited       Time Shared  Kbytes   LoadTime SysClass  Kbytes   LoadTime     Lookup      Parse Linked       Time Verified       Time AppClass  Kbytes      AppCL DefineClass       Time FindClass       Time Delegation URLCL Read$/ {
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    15
	    headerlines++;
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    16
	}
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    17
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    18
/^[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9][ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9][ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9][ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+$/ {
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    19
	    datalines++;
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    20
	}
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    21
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    22
	{ totallines++; print $0 }
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    23
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    24
END	{
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    25
	    if ((headerlines == 1) && (datalines == 1) && (totallines == 2)) {
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    26
	        exit 0
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    27
	    }
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    28
	    else {
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    29
	        exit 1
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    30
	    }
ca3811dc046d 6959965: jstat: Add new -classload option to print class loading statistics
mchung
parents:
diff changeset
    31
	}