From fa3e773bd8e9201da50b4a87157e1cbdef2e7d0c Mon Sep 17 00:00:00 2001 From: kamuru Date: Tue, 17 Dec 2013 16:59:31 +0900 Subject: [PATCH] [Title] Remove temporary code in CPUCoreChart.java [Desc.] [Issue] --- .../ui/timeline/chart/CPUCoreChart.java | 99 ---------------------- 1 file changed, 99 deletions(-) diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/chart/CPUCoreChart.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/chart/CPUCoreChart.java index d6e5d8c..ccc348c 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/chart/CPUCoreChart.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/chart/CPUCoreChart.java @@ -117,105 +117,6 @@ public class CPUCoreChart extends TimelineChart { chart.getPlot().setAxisUnit("%"); chart.getPlot().setShowAxis(true); - - //FIXME temporary - // core - DAChartBoardHeightChangeableItem coreItem = new DAChartBoardHeightChangeableItem( - item, "core"); - DAChartSeries coreSeries = new DAChartSeries("core", -1, ColorResources.BLUE); - - coreItem.useExpand(false); - coreItem.setHeightRatio(0.5); - - chart = coreItem.getChart(); - chart.addSeries(coreSeries); - - chart.getPlot().setAutoHeightRange(AutoRangeType.MANUAL); - chart.getPlot().setShowAxis(false); - - chart.setChartRenderer(new ContextSwitchingChartRenderer()); - initPopupMenu(board, new DAPopupMenu(chart)); - - ContextSwitchingChartSeriesItem tempItem; - coreSeries.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem("core1", - 0.9)); - tempItem.setEndX(1.2); - - coreSeries.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem("core2", - 1.5)); - - // function - DAChartBoardHeightChangeableItem functionItem = new DAChartBoardHeightChangeableItem( - coreItem, "function"); - DAChartSeries functionSeries = new DAChartSeries("function", -1, - ColorResources.RED); - - functionItem.useExpand(false); - functionItem.setHeightRatio(0.5); - - DAChart functionChart = functionItem.getChart(); - functionChart.addSeries(functionSeries); - - functionChart.getPlot().setAutoHeightRange(AutoRangeType.MANUAL); - functionChart.getPlot().setShowAxis(false); - - functionChart.setChartRenderer(new ContextSwitchingChartRenderer()); - initPopupMenu(board, new DAPopupMenu(functionChart)); - - functionSeries.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem("a()", - 0.4, ContextSwitchingChartSeriesItem.STYLE_OCTAGON)); tempItem.setEndX(0.6); - functionSeries.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem("b()", - 0.8, ContextSwitchingChartSeriesItem.STYLE_OCTAGON_LEFT_ONLY)); tempItem.setEndX(1); - functionSeries.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem("c()", - 1.2, ContextSwitchingChartSeriesItem.STYLE_OCTAGON_RIGHT_ONLY)); tempItem.setEndX(1.4); - - // call flow - DAChartBoardHeightChangeableItem callFlowItem = new DAChartBoardHeightChangeableItem( - item, "call flow"); - callFlowItem.useExpand(false); - callFlowItem.setHeightRatio(6 * 0.3); - - Display display = Display.getDefault(); - Color redColor = new Color(display, 255, 144, 144); - Color blueColor = new Color(display, 144, 144, 255); - DAChartSeries seriesUnknown = new DAChartSeries("unknown", -1, redColor); - DAChartSeries seriesA = new DAChartSeries("thread 1 a()", -1, redColor); - DAChartSeries seriesB = new DAChartSeries("thread 1 b()", -1, redColor); - DAChartSeries seriesC = new DAChartSeries("thread 1 c()", -1, redColor); - DAChartSeries seriesD = new DAChartSeries("thread 1 d()", -1, redColor); - DAChartSeries seriesE = new DAChartSeries("thread 1 e()", -1, redColor); - - DAChart callFlowChart = callFlowItem.getChart(); - callFlowChart.addSeries(seriesUnknown); - callFlowChart.addSeries(seriesA); - callFlowChart.addSeries(seriesB); - callFlowChart.addSeries(seriesC); - callFlowChart.addSeries(seriesD); - callFlowChart.addSeries(seriesE); - - callFlowChart.getPlot().setAutoHeightRange(AutoRangeType.MANUAL); - callFlowChart.getPlot().setShowAxis(false); - - callFlowChart.setChartRenderer(new CallFlowChartRenderer()); - initPopupMenu(board, new DAPopupMenu(callFlowChart)); - - seriesA.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem(null, 0.0, 1, ColorResources.RED)); - tempItem.setEndX(0.1); - seriesA.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem(null, 0.20, 2, ColorResources.RED)); - tempItem.setEndX(0.3); - seriesB.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem(null, 0.10, -1, ColorResources.RED)); - tempItem.setEndX(0.2); - seriesC.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem(null, 0.30, 1, ColorResources.RED)); - tempItem.setEndX(0.45); - seriesC.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem(null, 1.85, ColorResources.RED)); - tempItem.setEndX(2.05); - seriesD.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem(null, 0.45, ColorResources.RED)); - tempItem.setEndX(0.55); - seriesD.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem("contecxt switch", 0.55, blueColor, ColorResources.BLUE)); - tempItem.setEndX(1.55); - seriesD.addSeriesItem(tempItem = new ContextSwitchingChartSeriesItem(null, 1.55, -1, ColorResources.RED)); - tempItem.setEndX(1.85); - return item; } -- 2.7.4