Skip to content

Commit

Permalink
Merge branch 'data-panel-ui-filling' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
chewiebug committed Jan 10, 2021
2 parents 399d713 + cea47f6 commit b6a75a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void relayout() {
constraints.gridx = 1;
constraints.weightx = 0;
constraints.weighty = 0;
constraints.fill = GridBagConstraints.HORIZONTAL;
constraints.fill = GridBagConstraints.BOTH;
constraints.anchor = GridBagConstraints.SOUTH;
getContentPane().add(modelMetricsPanel, constraints);
modelMetricsPanel.setVisible(showModelMetricsPanel && (!chartPanelView.isMinimized()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,13 @@ public void addEntry(String name) {

labelMap.put(name, new TwoLabelsContainer(nameLabel, valueLabel));
}


public void fixGroupsHeight() {
for (Component component : getComponents()) {
component.setMaximumSize(new Dimension(component.getMaximumSize().width, component.getPreferredSize().height));
}
}

public void removeEntry(String name) {
TwoLabelsContainer labelContainer = labelMap.get(name);
assert labelContainer != null : "labelContainer for '" + name + "' is null -> was it registered?";
Expand Down Expand Up @@ -233,8 +239,10 @@ public MemoryTab() {

addEntry(LocalisationHelper.getString("data_panel_memory_promotion_avg"));
addEntry(LocalisationHelper.getString("data_panel_memory_promotion_total"));
}


fixGroupsHeight();
}

public void setModel(GCModel model) {
boolean fullGcDataAvailable = model.getFootprintAfterFullGC().getN() != 0;
boolean fullGcSlopeDataAvailable = model.getFootprintAfterFullGC().getN() > 1;
Expand Down Expand Up @@ -377,8 +385,10 @@ public PauseTab() {
addEntry(LocalisationHelper.getString("data_panel_count_gc_pauses"));
addEntry(LocalisationHelper.getString("data_panel_avg_gcpause"));
addEntry(LocalisationHelper.getString("data_panel_min_max_gc_pause"));

fixGroupsHeight();
}

public void setModel(GCModel model) {
boolean pauseDataAvailable = model.getPause().getN() > 0;
boolean gcDataAvailable = model.getGCPause().getN() > 0;
Expand Down Expand Up @@ -469,8 +479,10 @@ public SummaryTab() {
addEntry(LocalisationHelper.getString("data_panel_performance_fullgc"));
addEntry(LocalisationHelper.getString("data_panel_count_gc_pauses"));
addEntry(LocalisationHelper.getString("data_panel_performance_gc"));

fixGroupsHeight();
}

public void setModel(GCModel model) {
boolean fullGcDataAvailable = model.getFootprintAfterFullGC().getN() > 0;
boolean postConcurrentUsedSizeAvailable = model.getPostConcurrentCycleHeapUsedSizes().getN() > 0;
Expand Down

0 comments on commit b6a75a7

Please sign in to comment.