[Title] Modify gl page's time unit
authorkamuru <kamuru@kamuru-Samsung-Desktop-System.(none)>
Fri, 1 Nov 2013 06:48:49 +0000 (15:48 +0900)
committerkamuru <kamuru@kamuru-Samsung-Desktop-System.(none)>
Fri, 1 Nov 2013 06:48:49 +0000 (15:48 +0900)
[Desc.] Modify time unit to microsecond from milisecond
[Issue]

org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/opengl/data/model/GLAPIData.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/opengl/ui/GLDetailsView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/opengl/ui/apiList/GLAPIListTable.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/opengl/ui/apiList/GLAPIListView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/opengl/ui/chart/GLChartView.java
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/common/TimelineConstants.java

index a114eb3..ed8cb9f 100644 (file)
@@ -53,7 +53,7 @@ public class GLAPIData {
        }
 
        public long getElapsedTime() {
-               return logData.getElapsedTime() / TimelineConstants.MEGA_LONG;
+               return logData.getElapsedTime() / TimelineConstants.KILO_LONG;
        }
 
        public long getErrorNo() {
index 2c35b9e..8f7e949 100644 (file)
@@ -144,7 +144,7 @@ public class GLDetailsView extends DAView {
                                        frameIndex);
 
                        frameNumber = "Frame# : " + String.valueOf(frameIndex + 1);
-                       elapsedTime = "Elapsed time : " + glFrameData.getFrametime();
+                       elapsedTime = "Elapsed time : " + glFrameData.getFrametime() + "(μs)";
                        apiCount = glFrameData.getGLApiDataList().size() + " API(s)";
                        errorCount = glFrameData.getErrorCount() + " error(s)";
 
index bdca7a1..dc6e9c5 100644 (file)
@@ -66,10 +66,10 @@ public class GLAPIListTable extends DAApiListTableComposite {
                        GLPageLabels.GL_API_LIST_VIEW_TIME,
                        GLPageLabels.GL_API_LIST_VIEW_NAME,
                        GLPageLabels.GL_API_LIST_VIEW_PARAMETER,
-                       GLPageLabels.GL_API_LIST_VIEW_ELAPSED_TIME,
+                       GLPageLabels.GL_API_LIST_VIEW_ELAPSED_TIME + "(μs)", //$NON-NLS-1$
                        GLPageLabels.GL_API_LIST_VIEW_ERROR };
 
-       private int[] columnSizes = { 40, 0, 70, 120, 250, 100, 100 };
+       private int[] columnSizes = { 40, 0, 70, 120, 250, 105, 95 };
        private int[] columnAlignment = { SWT.RIGHT, SWT.LEFT, SWT.LEFT, SWT.LEFT,
                        SWT.LEFT, SWT.LEFT };
 
index 38b0a6c..7e4857a 100644 (file)
@@ -62,7 +62,6 @@ public class GLAPIListView extends DAView {
 
                viewContainer = new ViewContainer(this, true);
                viewContainer.setTitleText(GLPageLabels.GL_API_LIST_VIEW_TITLE);
-//             setMaxWeight(innerMaxWeight, outerMaxWeight);
 
                Composite contents = viewContainer.getContentArea();
                contents.setBackground(ColorResources.WINDOW_BG_COLOR);
index cd74079..cd37c2a 100644 (file)
@@ -299,28 +299,31 @@ public class GLChartView extends DAView {
        private void initializeCharts() {
                initIntervalMarkers(frameChartBoard);
                
-               GLFPSChart fpsChart = GLFPSChart.getInstance();
-               DAChartBoardItem fpsChartItem = fpsChart.createBoardItem(frameChartBoard);
-               DAChart fpsChartWidget = fpsChartItem.getChart();
-
-               GLFrameChartMouseEventListener glFrameChartMouseEventListener = new GLFrameChartMouseEventListener(
-                               fpsChart.getPopupMenu(), frameChartBoard.getTimeline());
-               
-               fpsChartWidget.getPlot().setMarkers(frameChartBoard.getMarkers());
-               fpsChartWidget.addMouseListener(glFrameChartMouseEventListener);
-               fpsChartWidget.addMouseMoveListener(glFrameChartMouseEventListener);
-               fpsChartWidget.addMouseTrackListener(new TimelineChartMouseTrackAdapter(
-                               frameChartBoard.getTimeline()));
-               
-               BoundLineEventListener underBoundLineEventListener = new BoundLineEventListener(fpsChartWidget, DAChartPlot.BoundType.UNDER);
-               fpsChartWidget.addMouseListener(underBoundLineEventListener);
-               fpsChartWidget.addMouseMoveListener(underBoundLineEventListener);
-               fpsChartWidget.addMouseTrackListener(underBoundLineEventListener);
+//             GLFPSChart fpsChart = GLFPSChart.getInstance();
+//             DAChartBoardItem fpsChartItem = fpsChart.createBoardItem(frameChartBoard);
+//             DAChart fpsChartWidget = fpsChartItem.getChart();
+//
+//             GLFrameChartMouseEventListener glFrameChartMouseEventListener = new GLFrameChartMouseEventListener(
+//                             fpsChart.getPopupMenu(), frameChartBoard.getTimeline());
+//             
+//             fpsChartWidget.getPlot().setMarkers(frameChartBoard.getMarkers());
+//             fpsChartWidget.addMouseListener(glFrameChartMouseEventListener);
+//             fpsChartWidget.addMouseMoveListener(glFrameChartMouseEventListener);
+//             fpsChartWidget.addMouseTrackListener(new TimelineChartMouseTrackAdapter(
+//                             frameChartBoard.getTimeline()));
+//             
+//             BoundLineEventListener underBoundLineEventListener = new BoundLineEventListener(fpsChartWidget, DAChartPlot.BoundType.UNDER);
+//             fpsChartWidget.addMouseListener(underBoundLineEventListener);
+//             fpsChartWidget.addMouseMoveListener(underBoundLineEventListener);
+//             fpsChartWidget.addMouseTrackListener(underBoundLineEventListener);
                
                GLFrameTimeChart frameTimeChart = GLFrameTimeChart.getInstance();
                DAChartBoardItem frameTimeChartItem = frameTimeChart.createBoardItem(frameChartBoard);
                DAChart frameTimeChartWidget = frameTimeChartItem.getChart();
                
+               GLFrameChartMouseEventListener glFrameChartMouseEventListener = new GLFrameChartMouseEventListener(
+                               frameTimeChart.getPopupMenu(), frameChartBoard.getTimeline());
+               
                frameTimeChartWidget.getPlot().setMarkers(frameChartBoard.getMarkers());
                frameTimeChartWidget.addMouseListener(glFrameChartMouseEventListener);
                frameTimeChartWidget.addMouseMoveListener(glFrameChartMouseEventListener);
index b6de140..9abd466 100644 (file)
@@ -45,6 +45,7 @@ public class TimelineConstants {
 
        public static final double MEGA_DOUBLE = 1000000;
        public static final long MEGA_LONG = 1000000;
+       public static final long KILO_LONG = 1000;
 
        public static final int NOT_INITED = -1;
 }