Skip to content

Commit

Permalink
update start time stamp in autoDecideStartEndTime
Browse files Browse the repository at this point in the history
Signed-off-by: wangshaojun.jeffery <[email protected]>
  • Loading branch information
superajun-wsj committed May 20, 2024
1 parent f9f5113 commit 5af0ff0
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 5af0ff0

Please sign in to comment.