jdk/test/sun/tools/jstatd/JstatGCUtilParser.java
author sla
Mon, 07 Apr 2014 08:09:55 +0200
changeset 23723 46b29c0e9656
parent 21410 5f3e83a059c4
permissions -rw-r--r--
8039256: Add sun/jvmstat/monitor/MonitoredVm/CR6672135.java to ProblemList.txt Reviewed-by: mgronlun, alanb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21410
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
     1
/*
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
     2
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
     4
 *
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
     7
 * published by the Free Software Foundation.
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
     8
 *
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    13
 * accompanied this code).
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    14
 *
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    18
 *
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    21
 * questions.
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    22
 */
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    23
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    24
import java.util.Arrays;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    25
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    26
import jdk.testlibrary.Utils;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    27
import static jdk.testlibrary.Asserts.*;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    28
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    29
/**
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    30
 * The helper class for parsing following output from command 'jstat -gcutil':
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    31
 *
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    32
 *  S0     S1     E      O      M     CCS    YGC     YGCT    FGC    FGCT     GCT
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    33
 *  100.00   0.00  64.68  13.17  73.39  33.46      2    0.003     1    0.156    0.158
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    34
 *  100.00   0.00  76.54  13.17  73.39  33.46      2    0.003     1    0.156    0.158
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    35
 *  100.00   0.00  83.49  13.17  73.39  33.46      2    0.003     1    0.156    0.158
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    36
 *  100.00   0.00  84.53  13.17  73.39  33.46      2    0.003     1    0.156    0.158
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    37
 *  100.00   0.00  85.57  13.17  73.39  33.46      2    0.003     1    0.156    0.158
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    38
 *
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    39
 *  It will be verified that numerical values have defined types and are reasonable,
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    40
 *  for example percentage should fit within 0-100 interval.
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    41
 */
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    42
public class JstatGCUtilParser {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    43
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    44
    public enum GcStatisticsType {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    45
        INTEGER, DOUBLE, PERCENTAGE, PERCENTAGE_OR_DASH;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    46
    }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    47
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    48
    public enum GcStatistics {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    49
        S0(GcStatisticsType.PERCENTAGE),
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    50
        S1(GcStatisticsType.PERCENTAGE),
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    51
        E(GcStatisticsType.PERCENTAGE),
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    52
        O(GcStatisticsType.PERCENTAGE),
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    53
        M(GcStatisticsType.PERCENTAGE),
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    54
        CCS(GcStatisticsType.PERCENTAGE_OR_DASH),
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    55
        YGC(GcStatisticsType.INTEGER),
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    56
        YGCT(GcStatisticsType.DOUBLE),
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    57
        FGC(GcStatisticsType.INTEGER),
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    58
        FGCT(GcStatisticsType.DOUBLE),
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    59
        GCT(GcStatisticsType.DOUBLE);
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    60
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    61
        private final GcStatisticsType type;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    62
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    63
        private GcStatistics(GcStatisticsType type) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    64
            this.type = type;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    65
        }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    66
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    67
        private GcStatisticsType getType() {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    68
            return type;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    69
        }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    70
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    71
        public static boolean isHeadline(String... valueArray) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    72
            if (valueArray.length != values().length) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    73
                return false;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    74
            }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    75
            int headersCount = 0;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    76
            for (int i = 0; i < values().length; i++) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    77
                if (valueArray[i].equals(values()[i].toString())) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    78
                    headersCount++;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    79
                }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    80
            }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    81
            if (headersCount != values().length) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    82
                return false;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    83
            }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    84
            return true;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    85
        }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    86
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    87
        private static void verifyLength(String... valueArray) throws Exception {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    88
            assertEquals(valueArray.length, values().length,
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    89
                    "Invalid number of data columns: " + Arrays.toString(valueArray));
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    90
        }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    91
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    92
        public static void verify(String... valueArray) throws Exception {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    93
            verifyLength(valueArray);
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    94
            for (int i = 0; i < values().length; i++) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    95
                GcStatisticsType type = values()[i].getType();
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    96
                String value = valueArray[i].trim();
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    97
                if (type.equals(GcStatisticsType.INTEGER)) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    98
                    Integer.parseInt(value);
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
    99
                    break;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   100
                }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   101
                if (type.equals(GcStatisticsType.DOUBLE)) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   102
                    Double.parseDouble(value);
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   103
                    break;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   104
                }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   105
                if (type.equals(GcStatisticsType.PERCENTAGE_OR_DASH) &&
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   106
                        value.equals("-")) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   107
                    break;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   108
                }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   109
                double percentage = Double.parseDouble(value);
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   110
                assertTrue(0 <= percentage && percentage <= 100,
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   111
                        "Not a percentage: " + value);
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   112
            }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   113
        }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   114
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   115
    }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   116
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   117
    private final String output;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   118
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   119
    public JstatGCUtilParser(String output) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   120
        this.output = output;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   121
    }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   122
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   123
    public String getOutput() {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   124
        return output;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   125
    }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   126
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   127
    /**
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   128
     * The function will discard any lines that come before the header line.
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   129
     * This can happen if the JVM outputs a warning message for some reason
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   130
     * before running jstat.
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   131
     */
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   132
    public void parse(int samples) throws Exception {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   133
        boolean headlineFound = false;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   134
        int datalineCount = 0;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   135
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   136
        String[] lines = output.split(Utils.NEW_LINE);
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   137
        for (String line : lines) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   138
            line = line.replaceAll("\\s+", " ").trim();
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   139
            String[] valueArray = line.split(" ");
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   140
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   141
            if (!headlineFound) {
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   142
                headlineFound = GcStatistics.isHeadline(valueArray);
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   143
                continue;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   144
            }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   145
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   146
            GcStatistics.verify(valueArray);
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   147
            datalineCount++;
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   148
        }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   149
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   150
        assertTrue(headlineFound, "No or invalid headline found, expected: " +
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   151
                Utils.NEW_LINE + Arrays.toString(GcStatistics.values()).replaceAll(",", " "));
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   152
        assertEquals(samples, datalineCount,
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   153
                "Expected " + samples + " samples, got " + datalineCount);
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   154
    }
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   155
5f3e83a059c4 8022229: Intermittent test failures in sun/tools/jstatd
ykantser
parents:
diff changeset
   156
}