Skip to content

Commit e8ed84c

Browse files
committed
handle minimal concurrent events (#175)
1 parent 6a349b0 commit e8ed84c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/main/java/com/tagtraum/perf/gcviewer/imp/DataReaderIBM_J9_R28.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ public GCModel read() throws IOException {
7676
break;
7777
case EXCLUSIVE_END:
7878
handleExclusiveEnd(startElement, currentGcEvent);
79-
model.add(currentGcEvent);
79+
if (currentGcEvent.getExtendedType() == null) {
80+
if (getLogger().isLoggable(Level.FINE)) getLogger().fine("event at " + in.getLineNumber() + " doesn't contain any information, the parser can handle");
81+
} else {
82+
model.add(currentGcEvent);
83+
}
8084
currentGcEvent = null;
8185
break;
8286
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<verbosegc xmlns="http://www.ibm.com/j9/verbosegc" version="R28_Java8_GA_20150116_2030_B231420_CMPRSS">
2+
3+
<concurrent-kickoff id="13398" timestamp="2016-08-09T15:35:46.017">
4+
<kickoff reason="threshold reached" targetBytes="376080782" thresholdFreeBytes="50490372" />
5+
</concurrent-kickoff>
6+
<exclusive-start id="13399" timestamp="2016-08-09T15:35:46.051" intervalms="18313.494">
7+
<response-info timems="1.561" idlems="1.298" threads="7" lastid="0000000034D10800" lastname="HTTP Handler 10.172.46.44" />
8+
</exclusive-start>
9+
<cycle-start id="13400" type="global" contextid="0" timestamp="2016-08-09T15:35:46.051" intervalms="18311.139" />
10+
<exclusive-end id="13401" timestamp="2016-08-09T15:35:46.052" durationms="0.809" />
11+
12+
</verbosegc>

0 commit comments

Comments
 (0)