equal
deleted
inserted
replaced
101 |
101 |
102 float GCT = getFloatValue("GCT"); |
102 float GCT = getFloatValue("GCT"); |
103 assertThat(GCT >= 0, "Incorrect time value for GCT"); |
103 assertThat(GCT >= 0, "Incorrect time value for GCT"); |
104 assertThat(GCT >= YGCT, "GCT < YGCT (total garbage collection time < young generation garbage collection time)"); |
104 assertThat(GCT >= YGCT, "GCT < YGCT (total garbage collection time < young generation garbage collection time)"); |
105 |
105 |
106 int CGC = getIntValue("CGC"); |
106 int CGC = 0; |
107 float CGCT = getFloatValue("CGCT"); |
107 float CGCT = 0.0f; |
108 assertThat(CGCT >= 0, "Incorrect time value for CGCT"); |
108 try { |
|
109 CGC = getIntValue("CGC"); |
|
110 } catch (NumberFormatException e) { |
|
111 if (!e.getMessage().equals("Unparseable number: \"-\"")) { |
|
112 throw e; |
|
113 } |
|
114 } |
109 if (CGC > 0) { |
115 if (CGC > 0) { |
|
116 CGCT = getFloatValue("CGCT"); |
|
117 assertThat(CGCT >= 0, "Incorrect time value for CGCT"); |
110 assertThat(CGCT > 0, "Number of concurrent GC events is " + CGC + ", but CGCT is 0"); |
118 assertThat(CGCT > 0, "Number of concurrent GC events is " + CGC + ", but CGCT is 0"); |
111 } |
119 } |
112 |
120 |
113 int FGC = getIntValue("FGC"); |
121 int FGC = getIntValue("FGC"); |
114 float FGCT = getFloatValue("FGCT"); |
122 float FGCT = getFloatValue("FGCT"); |