From 121e21bfe9ba099d48c0fe6b9fdee80c44761a59 Mon Sep 17 00:00:00 2001 From: "jy.exe.lee" Date: Mon, 16 Jul 2012 19:17:10 +0900 Subject: [PATCH] [Title] CPU graph and Call Trace View selectoin bug fixed [Type] bug fix [Module] Dynamic Analyzer [Priority] major [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- .../dynamic_analyzer/xml/user_function.logc | 14 ++++++++++++-- .../org/tizen/dynamicanalyzer/ui/views/SnapshotView.java | 2 +- .../ui/views/timelinePage/CallTraceView.java | 6 +++--- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/org.tizen.dynamicanalyzer.workbench/dynamic_analyzer/xml/user_function.logc b/org.tizen.dynamicanalyzer.workbench/dynamic_analyzer/xml/user_function.logc index 4c026e9..8917f0a 100644 --- a/org.tizen.dynamicanalyzer.workbench/dynamic_analyzer/xml/user_function.logc +++ b/org.tizen.dynamicanalyzer.workbench/dynamic_analyzer/xml/user_function.logc @@ -2,7 +2,7 @@ 4 user_function - 16 + 18 false Rid @@ -22,7 +22,9 @@ CallerPCAddr BinaryRangeStart BinaryRangeEnd - + + Type + ElapsedTime Reserved INTEGER @@ -43,6 +45,8 @@ INTEGER INTEGER + TEXT + INTEGER TEXT 100 @@ -69,6 +73,8 @@ 13 14 + 13 + 14 15 @@ -91,6 +97,8 @@ true true + true + true Row Id ID @@ -110,6 +118,8 @@ Binary Range Start Binary Range End + Type + ElapsedTime Reserved \ No newline at end of file diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/SnapshotView.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/SnapshotView.java index 0f0372b..c9e0d19 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/SnapshotView.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/SnapshotView.java @@ -310,7 +310,7 @@ public class SnapshotView extends DAView { LogCenterConstants.DEVICE_SYSTEM_CPU_USAGE_INDEX + 1) .split(","); cpuUsage.clear(); - for (int i = 0; i < cpuRates.length; i++) { + for (int i = 0; i < cpuRates.length - 1; i++) { String cpu = cpuRates[i].trim(); long value = (long) Float.parseFloat(cpu); cpuUsage.add(value); diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/timelinePage/CallTraceView.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/timelinePage/CallTraceView.java index cde3096..2518403 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/timelinePage/CallTraceView.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/views/timelinePage/CallTraceView.java @@ -87,17 +87,17 @@ public class CallTraceView extends DAView { long end = selData.getEndTime(); String query = "select count(time) from user_function where time < " //$NON-NLS-1$ - + start + ";"; //$NON-NLS-1$ + + start + " and type = " + LogCenterConstants.USER_FUNCTION_EVENT_TYPE_ENTER + ";"; //$NON-NLS-1$ int selectionIndex = SqlManager.executeSelectOperation(query); String countQuery = "select count(time) from user_function where time >" //$NON-NLS-1$ - + start + " and time <= " + end + ";"; //$NON-NLS-1$ //$NON-NLS-2$ + + start + " and time <= " + end + " and type = " + LogCenterConstants.USER_FUNCTION_EVENT_TYPE_ENTER + ";"; //$NON-NLS-1$ int selectionCount = SqlManager.executeSelectOperation(countQuery); selectionIndex = (selectionIndex < 0 && selectionCount > 0) ? 0 : selectionIndex; tableComp.getTable().getVerticalBar().setSelection(selectionIndex); - updateView(); +// updateView(); Grid table = tableComp.getTable(); if (selectionIndex >= 0) { -- 2.7.4