[Desc.] warning detail view fixed, snapshot view sync fixed, process chart numberformat exception fixed.
[Issue]
* Sets default state colors
*/
private void setDefaultColors() {
- attr.setColor(STATE_DISABLE,
- ColorResources.BUTTON_STATE_DISABLE);
+ attr.setColor(STATE_DISABLE, ColorResources.BUTTON_STATE_DISABLE);
attr.setColor(STATE_PUSH, ColorResources.BUTTON_STATE_PUSH);
attr.setColor(STATE_HOVER, ColorResources.BUTTON_STATE_HOVER);
attr.setColor(STATE_NORMAL, ColorResources.BUTTON_STATE_NORMAL);
FUNCTION_USER_PROFILING_VIEW_EXCLUSIVE=Exclusive
FUNCTION_USER_PROFILING_VIEW_INCLUSIVE=Inclusive
-WARNING_CASE_BRIEF_DUPLICATE=Duplicate file open.
-WARNING_CASE_BRIEF_NO_OPERATION=File closed without using it.
-WARNING_CASE_BRIEF_JOINABLE_LEAK=The joinable thread must call the join() method.
-WARNING_CASE_POST_FIX_DUPLICATE=File open multiple times with different file descriptors. It is recommended to open the file once and share the file descriptor.
-WARNING_CASE_POST_FIX_NO_OPERATION=File closed without accessing it. It is recommended to check if the file must be opened.
-WARNING_CASE_POST_FIX_JOINABLE_LEAK=If the thread is joinable, the join() method must be called, else it could create memory leaks.
-WARNING_CASE_BRIEF_CLOSED_FD_FOR_FAILED_FD=FD that cannot be used is not closed.
-WARNING_CASE_POST_CLOSED_FD_FOR_FAILED_FD=State of the FD was closed, it is not possible to use this FD anymore, Please close the FD.
+WARNING_CASE_BRIEF_DUPLICATE= Duplicate file open.
+WARNING_CASE_BRIEF_NO_OPERATION= File closed without using it.
+WARNING_CASE_BRIEF_JOINABLE_LEAK= The joinable thread must call the join() method.
+WARNING_CASE_POST_FIX_DUPLICATE=> File open multiple times with different file descriptors. It is recommended to open the file once and share the file descriptor.
+WARNING_CASE_POST_FIX_NO_OPERATION=> File closed without accessing it. It is recommended to check if the file must be opened.
+WARNING_CASE_POST_FIX_JOINABLE_LEAK=> If the thread is joinable, the join() method must be called, else it could create memory leaks.
+WARNING_CASE_BRIEF_CLOSED_FD_FOR_FAILED_FD= FD that cannot be used is not closed.
+WARNING_CASE_POST_CLOSED_FD_FOR_FAILED_FD=> State of the FD was closed, it is not possible to use this FD anymore, Please close the FD.
WARNING_CASE_PRE_FIX=<
cpuNum = ByteUtils.toInt(data, index);
index += INT_SIZE;
ArgsInfo info = LogDataUtils.parseArgs(data, index);
- args = info.getProfileArgs();
+ args = info.getArgs();
break;
case MSG_FUNCTION_EXIT:
logCount++;
prep.setLong(index++, ret);
prep.setString(index++, args);
prep.setString(index++, apiName);
- prep.setString(index++, libName);
prep.setString(index++, callstack);
}
addView(tabView);
{
SnapshotView snapshotView = new SnapshotView(
- tabView.getContentComposite(), SWT.NONE, false);
+ tabView.getContentComposite(), SWT.NONE, false, name);
snapshotView.setObservingViews(new String[] { FileApiListView.ID });
tabView.addView(snapshotView, false);
import org.tizen.dynamicanalyzer.swap.logparser.Logs;
import org.tizen.dynamicanalyzer.swap.model.data.LogData;
import org.tizen.dynamicanalyzer.swap.model.data.SystemData;
+import org.tizen.dynamicanalyzer.ui.page.DAPageComposite;
import org.tizen.dynamicanalyzer.ui.page.ViewAction;
import org.tizen.dynamicanalyzer.ui.widgets.ViewContainer;
import org.tizen.dynamicanalyzer.ui.widgets.table.DATableComposite;
private long lastStartTime = 0;
private long selectTime = -1;
+ private String pageName = null;
+
private DACustomButton latestButton = null;
- public SnapshotView(Composite parent, int style, boolean title) {
+ public SnapshotView(Composite parent, int style, boolean title, String page) {
super(parent, style);
name = InformationViewLabels.SNAPSHOT_VIEW_TITLE;
+ pageName = page;
this.setLayout(new FillLayout());
ViewContainer viewContainer = new ViewContainer(this, title);
} else if (latestButton.isButtonEnabled()) {
setStartTime(selectTime);
}
-// computeData();
+ // computeData();
Display.getDefault().syncExec(new Runnable() {
@Override
public void run() {
@Override
public void updateLog(LogPackage logPack) {
- Logs logs = logPack.getLogs(DataChannelConstants.MSG_DATA_SYSTEM);
- if (null == logs || null == logs.getLogs() || logs.getLogs().isEmpty()) {
- return;
- }
- List<LogData> inputs = logs.getLogs();
- int lastIndex = inputs.size() - 1;
- SystemData input = (SystemData) inputs.get(lastIndex);
+ DAPageComposite currentPage = AnalyzerManager.getCurrentPage();
+ if (currentPage.getViewName().equals(pageName)
+ && !latestButton.isButtonEnabled()) {
+ Logs logs = logPack.getLogs(DataChannelConstants.MSG_DATA_SYSTEM);
+ if (null == logs || null == logs.getLogs()
+ || logs.getLogs().isEmpty()) {
+ return;
+ }
+ List<LogData> inputs = logs.getLogs();
+ int lastIndex = inputs.size() - 1;
+ SystemData input = (SystemData) inputs.get(lastIndex);
+
+ String[] cpuRates = input.getCpuLoad().split(CommonConstants.COMMA);
+ cpuUsage.clear();
+ for (int i = 0; i < cpuRates.length - 1; i++) {
+ String cpu = cpuRates[i].trim();
+ long value = (long) Float.parseFloat(cpu);
+ cpuUsage.add(value);
+ }
- String[] cpuRates = input.getCpuLoad().split(CommonConstants.COMMA);
- cpuUsage.clear();
- for (int i = 0; i < cpuRates.length - 1; i++) {
- String cpu = cpuRates[i].trim();
- long value = (long) Float.parseFloat(cpu);
- cpuUsage.add(value);
- }
+ long totalMem = AnalyzerManager.getProject().getSystemMemorySize();
+ maxMem = totalMem;
+ processMem = input.getResidentMemory();
+ lastStartTime = input.getTime();
- long totalMem = AnalyzerManager.getProject().getSystemMemorySize();
- maxMem = totalMem;
- processMem = input.getResidentMemory();
- lastStartTime = input.getTime();
- setStartTime(lastStartTime);
+ setStartTime(lastStartTime);
+ }
}
@Override
addView(tabView);
{
SnapshotView snapshotView = new SnapshotView(
- tabView.getContentComposite(), SWT.NONE, false);
+ tabView.getContentComposite(), SWT.NONE, false, name);
snapshotView.setObservingViews(new String[] { NetworkApiListView.ID });
tabView.addView(snapshotView, false);
DATabComposite tabView = new DATabComposite(rightForm, SWT.NONE);
addView(tabView);
SnapshotView snapshotView = new SnapshotView(
- tabView.getContentComposite(), SWT.NONE, false);
+ tabView.getContentComposite(), SWT.NONE, false, name);
snapshotView.setObservingViews(new String[] { GLAPIListView.ID });
tabView.addView(snapshotView, false);
addView(tabView);
{
SnapshotView currentView = new SnapshotView(
- tabView.getContentComposite(), SWT.NONE, false);
+ tabView.getContentComposite(), SWT.NONE, false, name);
tabView.addView(currentView, false);
CallstackView callstack = new CallstackView(
addView(tabView);
{
SnapshotView snapshotView = new SnapshotView(
- tabView.getContentComposite(), SWT.NONE, false);
+ tabView.getContentComposite(), SWT.NONE, false, name);
tabView.addView(snapshotView, false);
snapshotView.setObservingViews(new String[] { FailedApiListView.ID,
LeakView.ID, WarningListView.ID });
addView(tabView);
{
SnapshotView snapshotView = new SnapshotView(
- tabView.getContentComposite(), SWT.NONE, false);
+ tabView.getContentComposite(), SWT.NONE, false, name);
snapshotView
.setObservingViews(new String[] { ThreadAPIListView.ID });
tabView.addView(snapshotView, false);
addView(tabView);
{
SnapshotView snapshotView = new SnapshotView(
- tabView.getContentComposite(), SWT.NONE, false);
+ tabView.getContentComposite(), SWT.NONE, false, name);
snapshotView.setObservingViews(new String[] { TimelineView.ID });
tabView.addView(snapshotView, false);
DAChart childChart = childItem.getChart();
DAChartPlot childPlot = childChart.getPlot();
DAChartPlotTooltip tooltip = new DAChartPlotTooltip(-1);
-
+
childPlot.setBackgroundImage(ImageResources.BG_GRADIENT);
tooltip.setFont(FontResources.CHART_TOOLTIP_FONT);
childPlot.setTooltip(tooltip);
clearItem.setText(TimelineChartLabels.RANGE_CONTEXT_CLEAR);
clearItem
.addListener(new PopupClearMenuItemClickListener());
-
+
TimelineChartMouseEventListener timelineChartMouseEventListener = new TimelineChartMouseEventListener(
popupMenu, chartBoard.getTimeline());
childChart
int prevChildSize = childSeriesMap.size();
for (int i = 0; i < processLoadDatas.length; i++) {
- int pid = Integer.parseInt(processLoadDatas[i]);
+ String processLoad = processLoadDatas[i];
+ if (null == processLoad || processLoad.isEmpty()) {
+ continue;
+ }
+ int pid = Integer.parseInt(processLoad);
double load = Double.parseDouble(processLoadDatas[++i]);
DAChartSeries series = childSeriesMap.get(pid);
public void setChartBoard(DAChartBoard chartBoard) {
this.chartBoard = chartBoard;
}
-
+
@Override
public void clear() {
super.clear();
addView(tabView);
{
SnapshotView currentView = new SnapshotView(
- tabView.getContentComposite(), SWT.NONE, false);
+ tabView.getContentComposite(), SWT.NONE, false, name);
currentView.setObservingViews(new String[] { UISceneListView.ID,
UIControlListView.ID });
tabView.addView(currentView, false);