diff --git a/analysis/gc-log/src/main/java/org/eclipse/jifa/gclog/model/GCModel.java b/analysis/gc-log/src/main/java/org/eclipse/jifa/gclog/model/GCModel.java index bf49b238..6bb028c0 100644 --- a/analysis/gc-log/src/main/java/org/eclipse/jifa/gclog/model/GCModel.java +++ b/analysis/gc-log/src/main/java/org/eclipse/jifa/gclog/model/GCModel.java @@ -563,6 +563,13 @@ private void autoDecideStartEndTime() endTime = Math.max(endTime, event.getPhases().getLast().getEndTime()); } setEndTime(Math.max(this.endTime, endTime)); + // update start time. + event = gcEvents.get(0); + double startTime = event.getStartTime(); + if (event.hasPhases()) { + startTime = Math.min(startTime, event.getPhases().get(0).getStartTime()); + } + setStartTime(Math.min(this.startTime, startTime)); } @ApiMeta("timeGraphData")