[Title] add filtering keyword for uiprofiling table
authorHyunjong,Pakr <phjwithyou.park@samsung.com>
Tue, 4 Dec 2012 06:26:22 +0000 (15:26 +0900)
committerHyunjong,Pakr <phjwithyou.park@samsung.com>
Tue, 4 Dec 2012 06:26:22 +0000 (15:26 +0900)
[Desc.] only virtual function
[Issue] redmine #7575

org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/config/user_interface_api_list
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/userinterface/profiling/UIFunctionProfilingDataChecker.java

index 88ccad9..dbc3104 100644 (file)
@@ -1,2 +1,2 @@
 file :: + Ui`, -Web ;
-api :: +(`,  +)`, -*`,-/`, -:`, -{`, -->`, -new`, -if`, -switch`, -!`, -.`, -operator`, -,;
\ No newline at end of file
+api :: +(`,  +)`, +virtual`,-*`,-/`, -:`, -{`, -->`, -new`, -if`, -switch`, -!`, -.`, -operator`, -,;
\ No newline at end of file
index 82ee80b..51a8065 100644 (file)
@@ -266,7 +266,7 @@ public class UIFunctionProfilingDataChecker {
                File[] files = file.listFiles();
                String filename = null;
                int filelength = files.length;
-               // int fileCount = 0;
+       //      int fileCount = 0;
                for (int i = 0; i < filelength; i++) {
                        filename = files[i].getName();
                        boolean isUIFile = false;
@@ -277,6 +277,9 @@ public class UIFunctionProfilingDataChecker {
                                                        chartIndex + 1).trim();
                                        if (filename.contains(uiAddOption)) {
                                                isUIFile = true;
+                                       }else{
+                                               isUIFile = false;
+                                               break;
                                        }
                                } else {
                                        int chartIndex = splitUiFileOptionList[j].indexOf("-");//$NON-NLS-1$
@@ -309,6 +312,9 @@ public class UIFunctionProfilingDataChecker {
                                                                                        .substring(chartIndex + 1).trim();
                                                                        if (strInputData.contains(uiAddOption)) {
                                                                                isUIApi = true;
+                                                                       }else{
+                                                                               isUIApi = false;
+                                                                               break;
                                                                        }
                                                                } else {
                                                                        int chartIndex = splitUiApiOptionList[j]
@@ -324,8 +330,8 @@ public class UIFunctionProfilingDataChecker {
                                                        if (isUIApi) {
                                                                userInterfaceFunctionTree
                                                                                .add(makeTreeSetData(strInputData));
-                                                               // System.out.println("API[ "+fileCount+" ] : "+strInputData);
-                                                               // fileCount++;
+                                                                //System.out.println("API[ "+fileCount+" ] : "+strInputData);
+                                               //               fileCount++;
                                                        }
                                                }
                                        }
@@ -339,7 +345,7 @@ public class UIFunctionProfilingDataChecker {
                                }
                        }
                }
-               System.out.println("list : " + userInterfaceFunctionTree.size());
+//             System.out.println("list : " + userInterfaceFunctionTree.size());
        }
        
        private String getUIApiOptionList() {