Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Gunde committed Jan 15, 2020
1 parent 25fb5af commit 9fdd627
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,14 @@ public void keyPressed(KeyEvent e) {
IAggregator<IQuantity, ?> min = Aggregators.min(JfrAttributes.START_TIME);
IQuantity newTime = gcTable.getSelection().getItems().getAggregate(min);
if (newTime == null) {
regionVisualizer.showGC(getDataSource().getItems().apply(ItemFilters.hasAttribute(JdkAttributes.GC_ID)));
regionVisualizer.showGC(
getDataSource().getItems().apply(ItemFilters.hasAttribute(JdkAttributes.GC_ID)));
time = getDataSource().getItems().apply(G1Constants.HEAP_REGION_DUMPS).getAggregate(min);
} else {
IAggregator<Set<IQuantity>, ?> distinct = Aggregators.distinct(JdkAttributes.GC_ID);
Set<IQuantity> gcIds = gcTable.getSelection().getItems().getAggregate(distinct);
regionVisualizer.showGC(getDataSource().getItems().apply(ItemFilters.memberOf(JdkAttributes.GC_ID, gcIds)));
regionVisualizer.showGC(
getDataSource().getItems().apply(ItemFilters.memberOf(JdkAttributes.GC_ID, gcIds)));
time = newTime;
}
heapVisualizer.show(seekTo(time));
Expand Down

0 comments on commit 9fdd627

Please sign in to comment.