Skip to content

Commit

Permalink
fix: update start time stamp in autoDecideStartEndTime (eclipse#283)
Browse files Browse the repository at this point in the history
Signed-off-by: wangshaojun.jeffery <[email protected]>
  • Loading branch information
superajun-wsj authored May 20, 2024
1 parent 63072cd commit 303a21f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,13 @@ public void autoDecideStartEndTime() {
endTime = Math.max(endTime, event.getPhases().get(event.getPhases().size() - 1).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 303a21f

Please sign in to comment.