From b012220c17e47ba7f6b800b61b9101ed5648956c Mon Sep 17 00:00:00 2001 From: jooyoul_lee Date: Mon, 4 Nov 2013 15:50:14 +0900 Subject: [PATCH] [Title] bug fixed [Desc.] table(failed, leak) api column size changed, failed check fixed, args parsing fixed. [Issue] --- .../dynamicanalyzer/common/AnalyzerConstants.java | 4 +- .../listeners/TableTooltipListener.java | 2 +- .../logparser/LogCenterConstants.java | 4 -- .../tizen/dynamicanalyzer/nl/AnalyzerLabels.java | 6 +- .../dynamicanalyzer/nl/AnalyzerLabels.properties | 3 +- .../dynamicanalyzer/nl/SummaryLabels.properties | 2 +- .../swap/logparser/SWAPLogParser.java | 21 ++++--- .../swap/model/data/LogDataUtils.java | 4 +- .../ui/summary/failed/FailedApiListView.java | 10 +-- .../ui/summary/failed/FailedApiTable.java | 13 ++-- .../ui/summary/failed/FailedChecker.java | 36 ++--------- .../dynamicanalyzer/ui/summary/leaks/LeakView.java | 2 +- .../ui/timeline/calltrace/CallTraceView.java | 2 +- .../ui/widgets/table/DATableCellRenderer.java | 2 +- .../ui/widgets/table/DATableComposite.java | 18 +++--- .../tizen/dynamicanalyzer/utils/AnalyzerUtil.java | 73 ++-------------------- 16 files changed, 60 insertions(+), 142 deletions(-) diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/common/AnalyzerConstants.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/common/AnalyzerConstants.java index ba15fae..1c32f6a 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/common/AnalyzerConstants.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/common/AnalyzerConstants.java @@ -275,8 +275,8 @@ public class AnalyzerConstants { // user call check public final static String USER_BIN_POS = "/opt/apps/"; //$NON-NLS-1$ - public final static int USER_CALL = 1; - public final static int INTERNAL_CALL = 2; + public final static int USER_CALL = 2; + public final static int INTERNAL_CALL = 1; public final static int USER_CALL_CHECK_ERROR = -1; public final static String VIRTUAL_THUNK = "virtual base override"; diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/TableTooltipListener.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/TableTooltipListener.java index ed97c1d..c79cce3 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/TableTooltipListener.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/listeners/TableTooltipListener.java @@ -436,7 +436,7 @@ public class TableTooltipListener implements Listener { if ((null == sl) || (!sl.isValid()) || (IDECommunicator.isConnected() == false)) { - createErrorPopup(AnalyzerLabels.SOURCE_NOT_EXIST); + createErrorPopup(AnalyzerLabels.IDE_NOT_LAUNCHED); return; } diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/logparser/LogCenterConstants.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/logparser/LogCenterConstants.java index 10f5b93..4157a80 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/logparser/LogCenterConstants.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/logparser/LogCenterConstants.java @@ -222,10 +222,6 @@ public class LogCenterConstants { public static final int THREAD_API_TYPE_INTERNAL_STOP = 7; public static final int THREAD_API_TYPE_OTHER = 8; - /* internal log */ - public static final int INTERNAL_CALL = 1; - public static final int USER_CALL = 2; - /* custom log : 13 */ public static final int CUSTOM_CHART_HANDLE = 12; public static final int CUSTOM_CHART_TYPE = 13; diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerLabels.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerLabels.java index adf77cc..3a0796f 100755 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerLabels.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerLabels.java @@ -84,7 +84,7 @@ public class AnalyzerLabels extends NLS { // Source tooltip public static String SOURCE_NOT_EXIST; - + public static String IDE_NOT_LAUNCHED; // Source popup public static String ERROR; public static String CONFIRMATION; @@ -197,9 +197,9 @@ public class AnalyzerLabels extends NLS { public static String STOP_PROCESS_DLG_DEVICE_DISCONNECTED; public static String TABLE_COLUMN_LIBNAME; - public static String TABLE_COLUMN_ARGUMENT; + public static String TABLE_COLUMN_PARAMETERS; public static String TABLE_COLUMN_RETURN; - + static { NLS.initializeMessages(BUNDLE_NAME, AnalyzerLabels.class); } diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerLabels.properties b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerLabels.properties index 6fbe6d1..303c7c3 100755 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerLabels.properties +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/AnalyzerLabels.properties @@ -49,6 +49,7 @@ DA_WARNING=Warning #Source tooltip SOURCE_NOT_EXIST=Source file does not exist. +IDE_NOT_LAUNCHED=Tizen IDE is not launched. #Source popup ERROR=Error @@ -162,5 +163,5 @@ STOP_PROCESS_DLG_SUMMARIZING_DATA=Summarizing collected data STOP_PROCESS_DLG_DEVICE_DISCONNECTED=Device disconnected TABLE_COLUMN_LIBNAME=Library -TABLE_COLUMN_ARGUMENT=Arguments +TABLE_COLUMN_PARAMETERS=Parameters TABLE_COLUMN_RETURN=Return \ No newline at end of file diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/SummaryLabels.properties b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/SummaryLabels.properties index 29dc264..a807385 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/SummaryLabels.properties +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/nl/SummaryLabels.properties @@ -31,7 +31,7 @@ WARNING_CASE_POST_CLOSED_FD_FOR_FAILED_FD=> State of the FD was closed, it is no WARNING_CASE_PRE_FIX=< -WARNING_LIST_VIEW_TITLE=Warning List +WARNING_LIST_VIEW_TITLE=Warnings WARNING_LIST_VIEW_CATEGORY=Category WARNING_LIST_VIEW_PID=PID WARNING_LIST_VIEW_INDEX=\# diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/logparser/SWAPLogParser.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/logparser/SWAPLogParser.java index e4fe826..75b7265 100755 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/logparser/SWAPLogParser.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/logparser/SWAPLogParser.java @@ -148,14 +148,19 @@ public class SWAPLogParser implements Runnable { // check main process!! // TODO : multi process processing if (log instanceof ProbeCommonData) { - if (-1 == pid) { - pid = ((ProbeCommonData) log).getPid(); - } else { - int p = ((ProbeCommonData) log).getPid(); - if (pid != p) { - continue; - } - } + // if (-1 == pid) { + // pid = ((ProbeCommonData) log).getPid(); + // } else { + // int p = ((ProbeCommonData) log).getPid(); + // if (pid != p) { + // continue; + // } + // } + + ProbeCommonData common = ((ProbeCommonData) log); + System.out.println("internal call : " + + common.getInternalCall() + " api : " + + common.getApiName()); } int seqNum = log.getSeq(); diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/LogDataUtils.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/LogDataUtils.java index fc535cb..97ee53d 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/LogDataUtils.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/swap/model/data/LogDataUtils.java @@ -51,12 +51,12 @@ public class LogDataUtils { break; case 'd': int iValue = ByteUtils.toInt(payload, index); - buffer.append(AnalyzerUtil.toHexdecimal(iValue)); + buffer.append(iValue); index += Integer.SIZE / Byte.SIZE; break; case 'x': long lValue = ByteUtils.toLong(payload, index); - buffer.append(AnalyzerUtil.toHexdecimal(lValue)); + buffer.append(lValue); index += LONG_SIZE; break; case 'p': diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedApiListView.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedApiListView.java index 68efd0c..51bb18b 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedApiListView.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedApiListView.java @@ -50,14 +50,14 @@ public class FailedApiListView extends DAView { SummaryLabels.FAILED_API_LIST_VIEW_INDEX, SummaryLabels.FAILED_API_LIST_VIEW_TIME, SummaryLabels.FAILED_API_LIST_VIEW_NAME, - SummaryLabels.FAILED_API_LIST_VIEW_PID, SummaryLabels.FAILED_API_LIST_VIEW_PARAMETER, SummaryLabels.FAILED_API_LIST_VIEW_RETURN, SummaryLabels.FAILED_API_LIST_VIEW_ERROR_CODE, - SummaryLabels.FAILED_API_LIST_VIEW_ERROR_DESCRIPTION }; - protected int[] columnSizes = { 25, 60, 45,45, 125, 70, 70, 400 }; - protected boolean[] columnVisibility = { false, true, true,true, true, true, - true, true }; + SummaryLabels.FAILED_API_LIST_VIEW_ERROR_DESCRIPTION, + SummaryLabels.FAILED_API_LIST_VIEW_PID }; + protected int[] columnSizes = { 25, 60, 150, 125, 70, 70, 400, 45 }; + protected boolean[] columnVisibility = { false, true, true, true, true, + true, true, true }; protected int[] sortTypes = { AnalyzerConstants.SORT_TYPE_NUM, AnalyzerConstants.SORT_TYPE_NUM, AnalyzerConstants.SORT_TYPE_STRING, diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedApiTable.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedApiTable.java index 6171f8c..6ca24f0 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedApiTable.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedApiTable.java @@ -106,14 +106,13 @@ public class FailedApiTable extends DATableComposite { data.add(Long.toString(failedData.getTime())); text.add(failedData.getName()); // 2 data.add(failedData.getName()); - text.add(Integer.toString(failedData.getPid())); // 3 - data.add(Integer.toString(failedData.getPid())); - text.add(failedData.getArgs()); // 4 + + text.add(failedData.getArgs()); // 3 data.add(failedData.getArgs()); - text.add(failedData.getHexReturn()); // 5 + text.add(failedData.getHexReturn()); // 4 data.add(Long.toString(failedData.getReturn())); - data.add(Long.toString(failedData.getCallerPc())); // 6 + data.add(Long.toString(failedData.getCallerPc())); // 5 String errCode = ErrorCodeManager.getInatance() .getErrorCode(failedData.getErrorCode()).name(); @@ -130,9 +129,11 @@ public class FailedApiTable extends DATableComposite { // FIXME : for debug errMsg = "undefined error number"; //$NON-NLS-1$ } - text.add(errMsg); // 7 + text.add(errMsg); // 6 data.add(Long.toString(failedData.getErrorCode())); + text.add(Integer.toString(failedData.getPid())); // 7 + data.add(Integer.toString(failedData.getPid())); // create images // create DATableDataFormat diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedChecker.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedChecker.java index 90082e5..e933a4c 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedChecker.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/failed/FailedChecker.java @@ -29,13 +29,9 @@ package org.tizen.dynamicanalyzer.ui.summary.failed; import java.util.ArrayList; import java.util.List; -import org.tizen.dynamicanalyzer.common.AnalyzerConstants; import org.tizen.dynamicanalyzer.swap.callstack.BaseCallstackManager; -import org.tizen.dynamicanalyzer.swap.model.data.FileData; import org.tizen.dynamicanalyzer.swap.model.data.LogData; -import org.tizen.dynamicanalyzer.swap.model.data.MemoryData; import org.tizen.dynamicanalyzer.swap.model.data.ProbeCommonData; -import org.tizen.dynamicanalyzer.swap.model.data.UserFunctionData; import org.tizen.dynamicanalyzer.utils.AnalyzerUtil; public class FailedChecker { @@ -43,38 +39,18 @@ public class FailedChecker { List failedList; public void check(LogData log, BaseCallstackManager cm) { - if (log instanceof MemoryData) { - if (AnalyzerUtil.isInternal((ProbeCommonData) log)) { - return; - } - long addr = ((MemoryData) log).getAddress(); - if (addr == 0) { //$NON-NLS-1$ //$NON-NLS-2$ - return; - } - checkUserDefinedFunc(log, cm); - } - if (log instanceof FileData) { - FileData fileData = ((FileData) log); - if (AnalyzerUtil.isInternal(fileData)) { + if (log instanceof ProbeCommonData) { + ProbeCommonData probeData = (ProbeCommonData) log; + if (AnalyzerUtil.isInternal(probeData)) { return; } - int fdType = fileData.getFdApiType(); - long errno = fileData.getErrno(); - if (fdType == 0 || errno == 0) { + + if (probeData.getErrno() == 0) // success + { return; } - checkUserDefinedFunc(fileData, cm); - } - if (log instanceof UserFunctionData) { - // TODO : check user function error??? - return; - } - } - private void checkUserDefinedFunc(LogData log, BaseCallstackManager cm) { - if (AnalyzerConstants.USER_CALL == AnalyzerUtil - .checkUserCall((ProbeCommonData) log)) { FailedData fd = new FailedData(log); getFailedList().add(fd); } diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/leaks/LeakView.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/leaks/LeakView.java index 1b44065..4471f82 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/leaks/LeakView.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/summary/leaks/LeakView.java @@ -52,7 +52,7 @@ public class LeakView extends DAView { SummaryLabels.LEAK_VIEW_TYPE, SummaryLabels.LEAK_VIEW_TIME, SummaryLabels.LEAK_VIEW_FILE_PARAMETER, SummaryLabels.LEAK_VIEW_RETURN, AnalyzerLabels.TABLE_COLUMN_LIBNAME }; - protected int[] columnSizes = { 60, 45, 25, 60, 60, 100, 70, 200 }; + protected int[] columnSizes = { 150, 45, 25, 60, 60, 100, 70, 200 }; protected boolean[] columnVisibility = { true, true, false, true, true, true, true, true }; protected int[] sortTypes = { AnalyzerConstants.SORT_TYPE_GRID, diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/calltrace/CallTraceView.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/calltrace/CallTraceView.java index 2f60205..59fde1a 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/calltrace/CallTraceView.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/timeline/calltrace/CallTraceView.java @@ -62,7 +62,7 @@ public class CallTraceView extends DAView { TimelinePageLabels.CALL_TRACE_VIEW_TID, TimelinePageLabels.CALL_TRACE_VIEW_PID, TimelinePageLabels.CALL_TRACE_VIEW_NAME, - AnalyzerLabels.TABLE_COLUMN_ARGUMENT, + AnalyzerLabels.TABLE_COLUMN_PARAMETERS, AnalyzerLabels.TABLE_COLUMN_RETURN, AnalyzerLabels.TABLE_COLUMN_LIBNAME }; private int[] columnSizes = { 60, 35, 35, 350, 150, 80, 200 }; diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DATableCellRenderer.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DATableCellRenderer.java index 5a85a7e..fffa9d8 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DATableCellRenderer.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DATableCellRenderer.java @@ -169,7 +169,7 @@ public class DATableCellRenderer extends DefaultCellRenderer { if (isTree() && getColumn() != 0) { gc.drawText(text, getBounds().x + x, getBounds().y + textTopMargin, true); - }else if (!isTree() || getColumn() != 0) { + } else if (!isTree() || getColumn() != 0) { gc.drawText(text, getBounds().x + x, getBounds().y + textTopMargin, true); } diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DATableComposite.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DATableComposite.java index 79d302a..fc31056 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DATableComposite.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/table/DATableComposite.java @@ -90,11 +90,11 @@ public abstract class DATableComposite extends Composite { protected DefaultTableComparator comparator = null; protected int[] sortTypes = null; -// protected int[] sourceColumns = null; + // protected int[] sourceColumns = null; protected int[] columnAlignment = null; protected boolean findEnabled = true; private String[] columnNames = null; - + protected boolean autoColumnPack = true; protected DAPopupMenu popupMenu = null; @@ -269,14 +269,14 @@ public abstract class DATableComposite extends Composite { if (null != comparator && null != sortTypes) { final int type = sortTypes[i]; -// final int sourceColumn = sourceColumns[i]; + // final int sourceColumn = sourceColumns[i]; final int columnIndex = i; column.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent event) { comparator.setType(type); comparator.setColumn(columnIndex); -// comparator.setSourceColumn(sourceColumn); + // comparator.setSourceColumn(sourceColumn); comparator.reverseDirection(); updateTable(); } @@ -284,7 +284,7 @@ public abstract class DATableComposite extends Composite { } } } - + public List getColumnsName() { List dbColumnsName = new ArrayList(); @@ -391,7 +391,7 @@ public abstract class DATableComposite extends Composite { gridItem.setImage(0, ImageResources.FAILED_API_ICON_TABLE); } } - + if (gridData != null) { long seqNum = gridData.getSelectionKey(); for (int ii = 0; ii < selSeqs.size(); ii++) { @@ -445,9 +445,9 @@ public abstract class DATableComposite extends Composite { } } -// public void setSourceColumns(int[] columns) { -// sourceColumns = columns; -// } + // public void setSourceColumns(int[] columns) { + // sourceColumns = columns; + // } public void setColumnAlignment(int[] columns) { columnAlignment = columns; diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/utils/AnalyzerUtil.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/utils/AnalyzerUtil.java index 1dff665..04ccb51 100755 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/utils/AnalyzerUtil.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/utils/AnalyzerUtil.java @@ -382,10 +382,6 @@ public class AnalyzerUtil { }); } - // public static void setRecordState(final String state) { - // recordState = state; - // } - public static int getTableItemHeight(Grid table) { GC gc = new GC(table); gc.setFont(table.getFont()); @@ -396,40 +392,16 @@ public class AnalyzerUtil { } public static boolean isInternal(ProbeCommonData log) { + boolean ret = false; if (AnalyzerConstants.CHECK_INTERNAL) { - try { - // int flag = Integer - // .parseInt(input[LogCenterConstants.INTERNAL_FLAG_INDEX]); - int flag = log.getInternalCall(); - if (flag == LogCenterConstants.INTERNAL_CALL) { - return true; - } else { - return false; - } - } catch (NumberFormatException e) { - e.printStackTrace(); - return false; - } - } else { - return false; - } - } - - public static boolean isInternal(List input, boolean isDB) { - if (AnalyzerConstants.CHECK_INTERNAL) { - int index = LogCenterConstants.INTERNAL_FLAG_INDEX; - if (isDB) { - index++; - } - int flag = Integer.parseInt(input.get(index)); - if (flag == LogCenterConstants.INTERNAL_CALL) { - return true; + int flag = log.getInternalCall(); + if (flag == AnalyzerConstants.INTERNAL_CALL) { + ret = true; } else { - return false; + ret = false; } - } else { - return false; } + return ret; } public static String makeLongList2String(List input) { @@ -472,39 +444,6 @@ public class AnalyzerUtil { return str.toString(); } - public static int checkUserCall(ProbeCommonData input) { - int internalValue = input.getInternalCall(); - if (internalValue == AnalyzerConstants.USER_CALL) { - return AnalyzerConstants.USER_CALL; - // } else if (internalValue == AnalyzerConstants.INTERNAL_CALL) { - } else { - return AnalyzerConstants.INTERNAL_CALL; - } - - // HashMap cdMap = AnalyzerManager - // .getCallstackManager().getCallStackDataBySeqMap(); - // HashMap addrMap = AnalyzerManager - // .getCallstackManager().getCallStackApiByAddrMap(); - // - // if (null == cdMap || null == addrMap) { - // return AnalyzerConstants.USER_CALL_CHECK_ERROR; - // } - // int seqNum = Integer - // .parseInt(input[LogCenterConstants.SEQUENCE_NUMBER_INDEX]); - // CallStackData csd = cdMap.get(seqNum); - // List addrs = csd.getAddrs(); - // if (addrs.isEmpty() || addrs.size() < 3) { - // // FIXME - // return AnalyzerConstants.USER_CALL_CHECK_ERROR; - // } - // - // String funcName = addrMap.get(addrs.get(0)).getFunctionName(); - // if (AnalyzerManager.getCallstackManager().checkUserCall(funcName)) { - // return AnalyzerConstants.USER_CALL; - // } - // return AnalyzerConstants.INTERNAL_CALL; - } - public static boolean deleteFile(File file) { if (file.isDirectory()) { String[] children = file.list(); -- 2.7.4