[Title] Modify to draw mutex white
authorkamuru <kamuru@kamuru-Samsung-Desktop-System.(none)>
Thu, 7 Nov 2013 06:10:23 +0000 (15:10 +0900)
committerkamuru <kamuru@kamuru-Samsung-Desktop-System.(none)>
Thu, 7 Nov 2013 06:10:23 +0000 (15:10 +0900)
[Desc.]
[Issue]

org.tizen.dynamicanalyzer.workbench/dynamic-analyzer/config/config
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/thread/ThreadChartManager.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/thread/sync/ThreadPageSyncData.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/thread/sync/ThreadPageSyncDataEvent.java

index d8cd6ec..58fa239 100644 (file)
@@ -2,5 +2,5 @@ Internal call=off
 Platform=tizen2.2
 Build time=09/05/2012 10:30 AM (GMT)
 Snapshot=0
-Selected chart list=CPU,CPU core,CPU frequency,Heap allocation,Process Size,Memory,UI event,Disk IO,Network IO
+Selected chart list=CPU,Heap allocation,Process Size,UI event
 Available chart list=CPU,CPU core,CPU frequency,Heap allocation,Process Size,Memory,File,Screenshot,UI event,Disk IO,Network IO
\ No newline at end of file
index 749f2af..b4c3027 100644 (file)
@@ -98,7 +98,7 @@ public class ThreadChartManager implements Runnable {
                }
        }
 
-       public List<LogData> getLogsFromLogPackage(LogPackage logPack,
+       private List<LogData> getLogsFromLogPackage(LogPackage logPack,
                        int logCenterConstants) {
                Logs logs = logPack.getLogs(logCenterConstants);
                if (null == logs || logs.getLogs().size() == 0) {
index 1dd1b1e..5b7fc45 100644 (file)
@@ -132,47 +132,81 @@ public class ThreadPageSyncData extends ThreadPageData {
                case LogCenterConstants.SYNC_API_TYPE_NOTIFY:
                case LogCenterConstants.SYNC_API_TYPE_NOTIFY_ALL:
                case LogCenterConstants.SYNC_API_TYPE_OTHER:
+                       if(((DAChartBoardItem)item).getChartBoard() != null){
+                               stateItem = new DAChartSeriesItem(syncEvent.getTime(),
+                                               DAChartSeriesItem.SERIES_STATE_CONNECTION,
+                                               ColorResources.THREAD_GRAPH_LOCK_RELEASE_COLOR,
+                                               "");
+                       } else {
                        stateItem = new DAChartSeriesItem(syncEvent.getTime(),
                                        DAChartSeriesItem.SERIES_STATE_CONNECTION,
                                        ColorResources.THREAD_GRAPH_LOCK_RELEASE_COLOR,
                                        ThreadPageLabels.SYNC_CHART_ITEM_UNUSED);
-
+                       }
                        apiItem = createApiItem(syncEvent, errorNum);
                        stateSeries.addSeriesItem(stateItem);
                        apiSeries.addSeriesItem(apiItem);
                        break;
                case LogCenterConstants.SYNC_API_TYPE_ACQUIRE_WAIT_START:
                case LogCenterConstants.SYNC_API_TYPE_COND_WAIT_START:
+                       if(((DAChartBoardItem)item).getChartBoard() != null){
+                               stateItem = new DAChartSeriesItem(syncEvent.getTime(),
+                                               DAChartSeriesItem.SERIES_STATE_CONNECTION,
+                                               ColorResources.THREAD_GRAPH_LOCK_RELEASE_COLOR,
+                                               "");
+                       } else{
                        stateItem = new DAChartSeriesItem(syncEvent.getTime(),
                                        DAChartSeriesItem.SERIES_STATE_CONTINUE,
                                        ColorResources.THREAD_GRAPH_LOCK_WAIT_COLOR,
                                        ThreadPageLabels.SYNC_CHART_ITEM_WAITED);
+                       }
                        apiItem = createApiItem(syncEvent, errorNum);
                        stateSeries.addSeriesItem(stateItem);
                        apiSeries.addSeriesItem(apiItem);
                        break;
                case LogCenterConstants.SYNC_API_TYPE_RELEASE:
+                       if(((DAChartBoardItem)item).getChartBoard() != null){
+                               stateItem = new DAChartSeriesItem(syncEvent.getTime(),
+                                               DAChartSeriesItem.SERIES_STATE_CONNECTION,
+                                               ColorResources.THREAD_GRAPH_LOCK_RELEASE_COLOR,
+                                               "");
+                       } else{
                        stateItem = new DAChartSeriesItem(syncEvent.getTime(),
                                        DAChartSeriesItem.SERIES_STATE_CONNECTION,
                                        ColorResources.THREAD_GRAPH_LOCK_RELEASE_COLOR,
                                        ThreadPageLabels.SYNC_CHART_ITEM_UNUSED);
+                       }
                        apiItem = createApiItem(syncEvent, errorNum);
                        stateSeries.addSeriesItem(stateItem);
                        apiSeries.addSeriesItem(apiItem);
                        break;
                case LogCenterConstants.SYNC_API_TYPE_ACQUIRE_WAIT_END:
                case LogCenterConstants.SYNC_API_TYPE_COND_WAIT_END:
+                       if(((DAChartBoardItem)item).getChartBoard() != null){
+                               stateItem = new DAChartSeriesItem(syncEvent.getTime(),
+                                               DAChartSeriesItem.SERIES_STATE_CONNECTION,
+                                               ColorResources.THREAD_GRAPH_LOCK_RELEASE_COLOR,
+                                               "");
+                       } else{
                        stateItem = new DAChartSeriesItem(syncEvent.getTime(),
                                        DAChartSeriesItem.SERIES_STATE_CONTINUE,
                                        ColorResources.THREAD_GRAPH_LOCK_ACQUIRE_COLOR,
                                        ThreadPageLabels.SYNC_CHART_ITEM_USED);
+                       }
                        stateSeries.addSeriesItem(stateItem);
                        break;
                case LogCenterConstants.SYNC_API_TYPE_TRY_ACQUIRE:
+                       if(((DAChartBoardItem)item).getChartBoard() != null){
+                               stateItem = new DAChartSeriesItem(syncEvent.getTime(),
+                                               DAChartSeriesItem.SERIES_STATE_CONNECTION,
+                                               ColorResources.THREAD_GRAPH_LOCK_RELEASE_COLOR,
+                                               "");
+                       } else{
                        stateItem = new DAChartSeriesItem(syncEvent.getTime(),
                                        DAChartSeriesItem.SERIES_STATE_CONTINUE,
                                        ColorResources.THREAD_GRAPH_LOCK_ACQUIRE_COLOR,
                                        ThreadPageLabels.SYNC_CHART_ITEM_USED);
+                       }
                        apiItem = createApiItem(syncEvent, errorNum);
                        stateSeries.addSeriesItem(stateItem);
                        apiSeries.addSeriesItem(apiItem);
index 4a70c16..2982334 100644 (file)
@@ -36,23 +36,15 @@ public class ThreadPageSyncDataEvent extends ThreadPageDataEvent {
                        double time, String tid, String tooltip, long errorNum,
                        LogData contents) {
                super(time, tid, apiType, tooltip, errorNum, contents);
-               setSyncVal(syncVal);
-               setType(type);
+               this.syncVal = syncVal;
+               this.type = type;
        }
 
        public String getSyncVal() {
                return syncVal;
        }
 
-       public void setSyncVal(String syncVal) {
-               this.syncVal = syncVal;
-       }
-
        public int getType() {
                return type;
        }
-
-       public void setType(int type) {
-               this.type = type;
-       }
 }