Merge "Exception handling Charts(Heap allocation, Process Size)" into tizen
authorwoojin Jung <woojin2.jung@samsung.com>
Mon, 13 Jul 2015 01:46:52 +0000 (10:46 +0900)
committerGerrit Code Review <gerrit@tizensrc>
Mon, 13 Jul 2015 01:46:52 +0000 (10:46 +0900)
1  2 
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/chart/HeapChart.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/chart/ProcessMemoryChart.java

@@@ -179,28 -181,9 +182,27 @@@ public class ProcessMemoryChart extend
                                parentBoardItem.unFoldChild();
                        }
  
 -                      final DAChartBoardItem curBoard = processChartboardMap.get(pid);
 -
 +                      DAChartBoardItem curBoard = null;
 +                      int selectedPID = Toolbar.INSTANCE.getSelectedPid();
 +                      // Case : Pass unselected process.
 +                      if (selectedPID > 0 && selectedPID != pid) {
 +                              continue;
 +                      } 
 +                      // Show a selected process on parent chartboardItem.
 +                      else if (selectedPID > 0 && selectedPID == pid) { 
 +                              curBoard = parentBoardItem;
 +                              parentBoardItem.hideChildItems();
 +                              parentBoardItem.getItemCell().hideChildFoldToggleButton();
 +                              curBoard.getChart().getPlot().setAxisEndY(0);
 +                      } 
 +                      // Show All processes on one's chartboardItem.
 +                      else {
 +                              curBoard = processChartboardMap.get(pid);
 +                              parentBoardItem.showChildItems();
 +                              parentBoardItem.getItemCell().showChildFoldToggleButton();
 +                      }
 +                      
                        String oldProcessName = processNameMap.get(pid);
-                       final String processName = AnalyzerUtil.getProcessName(pid.intValue());
                        if (oldProcessName == null || !oldProcessName.equals(processName)) {
                                curBoard.getChart().setInformation(processName + " / PID : " + pid.intValue());
                        }