opengl : add filter conditions at redundant table 61/26961/1
authorHyunjong.park <phjwithyou.park@samsung.com>
Tue, 2 Sep 2014 08:52:21 +0000 (17:52 +0900)
committerHyunjong.park <phjwithyou.park@samsung.com>
Tue, 2 Sep 2014 08:52:21 +0000 (17:52 +0900)
Signed-off-by: Hyunjong.park <phjwithyou.park@samsung.com>
Change-Id: Ia5c4df1c3fb5aab6cf5f628dc01b798879eb9a90

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/opengl/table/state/GLRedundantTable.java

index 4da2db3..b491834 100644 (file)
@@ -86,6 +86,9 @@ public class GLRedundantTable extends DATableComposite {
                for (int i = 0; i < size; i++) {
                        GLRedundantDataType data = dataList.get(i);
                        List<String> text = new ArrayList<String>();
+                       if (isFilterConditions(data)) {
+                               continue;
+                       }
                        text.add(Integer.toString(data.getCallCount()));
                        text.add(Formatter.toTimeFormat4((data.getElapsedTime())));
                        text.add(data.getAPIName());
@@ -111,6 +114,14 @@ public class GLRedundantTable extends DATableComposite {
                return input;
        }
 
+       private boolean isFilterConditions(GLRedundantDataType data) {
+               if (data.getCallCount() < 2) {
+                       return true;
+               } else {
+                       return false;
+               }
+       }
+
        public void removeSelection() {
                table.removeAll();
                updateTable();