Skip to content

Commit

Permalink
Merge pull request #2 from eclipse/main
Browse files Browse the repository at this point in the history
fix: update start time stamp in autoDecideStartEndTime (eclipse#283)
  • Loading branch information
denAbramoff authored May 20, 2024
2 parents 7b2cd8d + 303a21f commit 769b8ec
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 769b8ec

Please sign in to comment.