@@ -108,14 +108,15 @@ public void parseGcDefaults() throws Exception {
108
108
@ Test
109
109
public void parseGcAllSafepointOsCpu () throws Exception {
110
110
GCModel model = getGCModelFromLogFile ("sample-ujl-g1-gc-all,safepoint,os+cpu.txt" );
111
- assertThat ("size" , model .size (), is (15 ));
111
+ assertThat ("size" , model .size (), is (29 ));
112
112
assertThat ("amount of STW GC pause types" , model .getGcEventPauses ().size (), is (4 ));
113
113
assertThat ("amount of STW GC pauses" , model .getGCPause ().getN (), is (13 ));
114
+ assertThat ("amount of VM operation pauses" , model .getVmOperationPause ().getN (), is (14 ));
114
115
assertThat ("amount of STW Full GC pause types" , model .getFullGcEventPauses ().size (), is (0 ));
115
116
assertThat ("amount of STW Full GC pauses" , model .getFullGCPause ().getN (), is (0 ));
116
117
assertThat ("amount of concurrent pause types" , model .getConcurrentEventPauses ().size (), is (1 ));
117
118
118
- AbstractGCEvent <?> event1 = model .get (0 );
119
+ AbstractGCEvent <?> event1 = model .get (1 );
119
120
UnittestHelper .testMemoryPauseEvent (event1 ,
120
121
"young" ,
121
122
Type .UJL_PAUSE_YOUNG ,
@@ -125,8 +126,8 @@ public void parseGcAllSafepointOsCpu() throws Exception {
125
126
false );
126
127
assertThat ("young heap before" , event1 .details ().next ().getPreUsed (), is (1024 * 14 ));
127
128
128
- // GC(3 ) Pause Initial Mark
129
- AbstractGCEvent <?> event2 = model .get (5 );
129
+ // GC(6 ) Pause Initial Mark
130
+ AbstractGCEvent <?> event2 = model .get (11 );
130
131
UnittestHelper .testMemoryPauseEvent (event2 ,
131
132
"initial mark" ,
132
133
Type .UJL_PAUSE_INITIAL_MARK ,
@@ -136,8 +137,8 @@ public void parseGcAllSafepointOsCpu() throws Exception {
136
137
false );
137
138
assertThat ("isInitialMark" , event2 .isInitialMark (), is (true ));
138
139
139
- // GC(3 ) Pause Remark
140
- AbstractGCEvent <?> remarkEvent = model .get (10 );
140
+ // GC(6 ) Pause Remark
141
+ AbstractGCEvent <?> remarkEvent = model .get (20 );
141
142
UnittestHelper .testMemoryPauseEvent (remarkEvent ,
142
143
"remark" ,
143
144
Type .UJL_PAUSE_REMARK ,
@@ -147,7 +148,7 @@ public void parseGcAllSafepointOsCpu() throws Exception {
147
148
false );
148
149
assertThat ("isRemark" , remarkEvent .isRemark (), is (true ));
149
150
150
- AbstractGCEvent <?> cleanupEvent = model .get (13 );
151
+ AbstractGCEvent <?> cleanupEvent = model .get (26 );
151
152
UnittestHelper .testMemoryPauseEvent (cleanupEvent ,
152
153
"cleanup" ,
153
154
Type .UJL_G1_PAUSE_CLEANUP ,
@@ -156,12 +157,14 @@ public void parseGcAllSafepointOsCpu() throws Exception {
156
157
Generation .TENURED ,
157
158
false );
158
159
159
- AbstractGCEvent <?> concurrentCycleBeginEvent = model .get (6 );
160
+ AbstractGCEvent <?> concurrentCycleBeginEvent = model .get (13 );
161
+ assertThat ("concurrent cycle" , concurrentCycleBeginEvent .getTypeAsString (), is (Type .UJL_G1_CONCURRENT_CYCLE .getName ()));
160
162
assertThat ("event is start of concurrent collection" ,
161
163
concurrentCycleBeginEvent .isConcurrentCollectionStart (),
162
164
is (true ));
163
165
164
- AbstractGCEvent <?> concurrentCycleEndEvent = model .get (14 );
166
+ AbstractGCEvent <?> concurrentCycleEndEvent = model .get (28 );
167
+ assertThat ("concurrent cycle" , concurrentCycleEndEvent .getTypeAsString (), is (Type .UJL_G1_CONCURRENT_CYCLE .getName ()));
165
168
assertThat ("event is end of concurrent collection" ,
166
169
concurrentCycleEndEvent .isConcurrentCollectionEnd (),
167
170
is (true ));
@@ -170,7 +173,7 @@ public void parseGcAllSafepointOsCpu() throws Exception {
170
173
@ Test
171
174
public void parseGcAllSafepointOsCpuWithToSpaceExhausted () throws Exception {
172
175
GCModel model = getGCModelFromLogFile ("sample-ujl-g1-gc-all,safepoint,os+cpu-to-space-exhausted.txt" );
173
- assertThat ("size" , model .size (), is (1 ));
176
+ assertThat ("size" , model .size (), is (2 ));
174
177
AbstractGCEvent <?> youngEvent = model .get (0 );
175
178
UnittestHelper .testMemoryPauseEvent (youngEvent ,
176
179
"young" ,
0 commit comments