INTERNAL: modify to get process name temporary 75/25675/1
authorgreatim <jaewon81.lim@samsung.com>
Fri, 8 Aug 2014 02:19:57 +0000 (11:19 +0900)
committergreatim <jaewon81.lim@samsung.com>
Fri, 8 Aug 2014 02:19:57 +0000 (11:19 +0900)
until swap manager is loaded in emulator, getProcessName function should be commented for testing

Change-Id: Id2771f21d5c7c651763143a96aa44cf68c4634b7
Signed-off-by: greatim <jaewon81.lim@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/project/ProcessInformation.java

index 9b07d10..f5d2ea5 100644 (file)
@@ -58,27 +58,27 @@ public class ProcessInformation {
        }
 
        public String getProcessName() {
-               if (processNameByRequest == null) {
-                       synchronized (processNameRequestLock) {
-                               if (processNameByRequest == null) {
-                                       List<Integer> pids = new ArrayList<Integer>();
-                                       pids.add(Integer.valueOf(pid));
-                                       Map<Integer, String> nameMap = DACommunicator
-                                                       .sendProcessAddInfoMessage(pids);
-                                       if (nameMap != null) {
-                                               String name = nameMap.get(Integer.valueOf(pid));
-                                               if (name != null) {
-                                                       int index = name.lastIndexOf("/");
-                                                       if(index > 0) {
-                                                               processNameByRequest = name.substring(index + 1);
-                                                       } else {
-                                                               processNameByRequest = name;
-                                                       }
-                                               }
-                                       }
-                               }
-                       }
-               }
+//             if (processNameByRequest == null) {
+//                     synchronized (processNameRequestLock) {
+//                             if (processNameByRequest == null) {
+//                                     List<Integer> pids = new ArrayList<Integer>();
+//                                     pids.add(Integer.valueOf(pid));
+//                                     Map<Integer, String> nameMap = DACommunicator
+//                                                     .sendProcessAddInfoMessage(pids);
+//                                     if (nameMap != null) {
+//                                             String name = nameMap.get(Integer.valueOf(pid));
+//                                             if (name != null) {
+//                                                     int index = name.lastIndexOf("/");
+//                                                     if(index > 0) {
+//                                                             processNameByRequest = name.substring(index + 1);
+//                                                     } else {
+//                                                             processNameByRequest = name;
+//                                                     }
+//                                             }
+//                                     }
+//                             }
+//                     }
+//             }
 
                if (processNameByRequest != null && !processNameByRequest.isEmpty())
                        return processNameByRequest;