hotspot/test/gc/g1/plab/lib/LogParser.java
changeset 38726 2c99beca1dd8
parent 37181 0d5e8ae18924
equal deleted inserted replaced
38725:2a9e848a3276 38726:2c99beca1dd8
   167      * @param type type of statistics
   167      * @param type type of statistics
   168      * @param fieldsName name of fields in PlabStatistics
   168      * @param fieldsName name of fields in PlabStatistics
   169      * @return
   169      * @return
   170      **/
   170      **/
   171     public PlabInfo getSpecifiedStats(long specifiedGcId, LogParser.ReportType type, List<String> fieldsName) {
   171     public PlabInfo getSpecifiedStats(long specifiedGcId, LogParser.ReportType type, List<String> fieldsName) {
   172         return getSpecifiedStats(Arrays.asList(specifiedGcId), type, fieldsName, true).get(specifiedGcId);
   172         PlabInfo info = getSpecifiedStats(Arrays.asList(specifiedGcId), type, fieldsName, true).get(specifiedGcId);
       
   173         if (info == null) {
       
   174             System.out.println(log);
       
   175             throw new RuntimeException("Cannot find PLAB statistics in log ( GC_ID=" + specifiedGcId + " type=" + type + " )");
       
   176         }
       
   177         return info;
   173     }
   178     }
   174 
   179 
   175     /**
   180     /**
   176      * Returns Map<Long,PlabStatistics> which contains specified statistics. Filters out specified gc ids.
   181      * Returns Map<Long,PlabStatistics> which contains specified statistics. Filters out specified gc ids.
   177      * @param specifiedGcIdForExclude
   182      * @param specifiedGcIdForExclude