jdk/test/sun/tools/jstat/timeStamp1.awk
changeset 37328 b51428cf0edf
parent 22562 e909d64b8dd8
child 37329 1cebe5df8ece
equal deleted inserted replaced
37327:38d654673889 37328:b51428cf0edf
     1 #
     1 #
     2 # matching the following output specified as a pattern that verifies
     2 # matching the following output specified as a pattern that verifies
     3 # that the numerical values conform to a specific pattern, rather than
     3 # that the numerical values conform to a specific pattern, rather than
     4 # specific values.
     4 # specific values.
     5 #
     5 #
     6 #Timestamp         S0     S1     E      O      M     CCS    YGC     YGCT    FGC    FGCT     GCT   
     6 #Timestamp         S0     S1     E      O      M     CCS    YGC     YGCT    FGC    FGCT    CGC    CGCT     GCT   
     7 #            0.3   0.00 100.00  68.74   1.95  77.73  68.02      1    0.004     0    0.000    0.004
     7 #            0.3   0.00 100.00  68.74   1.95  77.73  68.02      1    0.004     0    0.000     0    0.000    0.004
     8 
     8 
     9 BEGIN	{
     9 BEGIN	{
    10 	    headerlines=0; datalines=0; totallines=0
    10 	    headerlines=0; datalines=0; totallines=0
    11 	}
    11 	}
    12 
    12 
    13 /^Timestamp         S0     S1     E      O      M     CCS    YGC     YGCT    FGC    FGCT     GCT   $/	{
    13 /^Timestamp         S0     S1     E      O      M     CCS    YGC     YGCT    FGC    FGCT    CGC    CGCT     GCT   $/	{
    14 	    headerlines++;
    14 	    headerlines++;
    15 	}
    15 	}
    16 
    16 
    17 /^[ ]*[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]+$/	{
    17 /^[ ]*[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]+$/	{
    18 	    datalines++;
    18 	    datalines++;
    19 	}
    19 	}
    20 
    20 
    21 	{ totallines++; print $0 }
    21 	{ totallines++; print $0 }
    22 
    22