From 25644c09387d3c24e7dc9347570d27d0f6560d21 Mon Sep 17 00:00:00 2001 From: "Hyunjong,Pakr" Date: Tue, 4 Dec 2012 15:26:22 +0900 Subject: [PATCH] [Title] add filtering keyword for uiprofiling table [Desc.] only virtual function [Issue] redmine #7575 --- .../dynamic-analyzer/config/user_interface_api_list | 2 +- .../profiling/UIFunctionProfilingDataChecker.java | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/config/user_interface_api_list b/org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/config/user_interface_api_list index 88ccad9..dbc3104 100644 --- a/org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/config/user_interface_api_list +++ b/org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/config/user_interface_api_list @@ -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 diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/userinterface/profiling/UIFunctionProfilingDataChecker.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/userinterface/profiling/UIFunctionProfilingDataChecker.java index 82ee80b..51a8065 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/userinterface/profiling/UIFunctionProfilingDataChecker.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/userinterface/profiling/UIFunctionProfilingDataChecker.java @@ -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() { -- 2.7.4