List<String> contentText = new ArrayList<String>();
List<String> contentData = new ArrayList<String>();
- int startLogIndex = 0;
+ Integer startLogIndex = 0;
int fdApiType = contentTemp.getFdApiType();
if (fdApiType==LogCenterConstants.FD_API_TYPE_READ_START
} else if (fdApiType==LogCenterConstants.FD_API_TYPE_READ_END
|| fdApiType==LogCenterConstants.FD_API_TYPE_WRITE_END) {
- startLogIndex = findStartAPITableIndexHashMap.get(contentTemp.getArgs());
- removeTableIndex.add(startLogIndex);
+ startLogIndex = findStartAPITableIndexHashMap.get(contentTemp.getArgs());
+ if(null != startLogIndex){
+ removeTableIndex.add(startLogIndex.intValue());
+ }
+
}
if (fdApiType==LogCenterConstants.FD_API_TYPE_READ_END
|| fdApiType==LogCenterConstants.FD_API_TYPE_WRITE_END) {
- contentText.add(input.get(startLogIndex).getText().get(1));
- contentData.add(input.get(startLogIndex).getText().get(1));
+ if(null != startLogIndex){
+ contentText.add(input.get(startLogIndex.intValue()).getText().get(1));
+ contentData.add(input.get(startLogIndex.intValue()).getText().get(1));
+ }else{
+ contentText.add(Formatter.toTimeFormat(time));
+ contentData.add(Long.toString(time));
+ }
+
} else {
contentText.add(Formatter.toTimeFormat(contentTemp.getTime()));
contentData.add(Formatter.toTimeFormat(contentTemp.getTime()));
contentData.add(contentTemp.getArgs());
contentText.add(Integer.toString(contentTemp.getTid()));
contentData.add(Integer.toString(contentTemp.getTid()));
- contentText.add(Long.toString(contentTemp.getReturn()));
+
+// if(fdApiType == LogCenterConstants.FD_API_TYPE_OPEN){
+// contentText.add("0x"+Long.toHexString(contentTemp.getReturn()));//$NON-NLS-1$
+// contentData.add("0x"+Long.toHexString(contentTemp.getReturn()));//$NON-NLS-1$
+// }else{
+// contentText.add(Long.toString(contentTemp.getReturn()));
+// contentData.add(Long.toString(contentTemp.getReturn()));
+// }
+
+ contentText.add(contentTemp.getHexReturn());
contentData.add(Long.toString(contentTemp.getReturn()));
+
String errMsg = ErrorCodeManager.getInatance()
.getErrorCode(contentTemp.getErrno()).name();
if (null == errMsg) {
int size = inputs.size();
for (int i = 0; i < size; i++) {
FileData input = (FileData) inputs.get(i);
-
+
if (AnalyzerUtil.isInternal(input)) {
continue;
}
} else if (fdApiType == LogCenterConstants.FD_API_TYPE_READ_END
|| fdApiType == LogCenterConstants.FD_API_TYPE_WRITE_END) {
long fileSize = input.getFileSize();
- System.out.println(input.getApiName()+" : fileSize : "+fileSize);
+ System.out.println(input.getApiName() + " : fileSize : "
+ + fileSize);
if (fileSize < 0) {
fileSize = 0;
}
fromSelectionItem
.addListener(new PopupFromSelectionMenuItemClickListener(
fromSelectionItem, board));
-
+
DAPopupMenuItem analysisItem = new DAPopupMenuItem(popupMenu,
DAPopupMenuItem.NONE);
analysisItem.setText(TimelineChartLabels.RANGE_CONTEXT_ANALYSIS);
initFileChart(chart, true);
} else {
DAChartBoardItem parentItem = parent.getItem();
- item = new DAChartBoardItem(parentItem, Long.toString(sync.getFD()));
+ if (sync.getFD() > 999999999) {
+ item = new DAChartBoardItem(parentItem, "0x"
+ + Long.toHexString(sync.getFD()));
+ } else {
+ item = new DAChartBoardItem(parentItem, Long.toString(sync
+ .getFD()));
+ }
+
chart = item.getChart();
initFileChart(chart, false);
}
contentText.add(contentTemp.getApiName());
contentData.add(contentTemp.getApiName());
+ if(contentTemp.getApiName().contains(CommonConstants.DOUBLE_COLON)){
+ contentText.add(AnalyzerUtil.toHexdecimal(contentTemp.getObjectAddress()));
+ contentData.add(AnalyzerUtil.toHexdecimal(contentTemp.getObjectAddress()));
+ }else{
+ contentText.add(CommonConstants.DASH);
+ contentData.add(CommonConstants.DASH);
+ }
- contentText.add(AnalyzerUtil.toHexdecimal(contentTemp.getObjectAddress()));//$NON-NLS-1$
- contentData.add(AnalyzerUtil.toHexdecimal(contentTemp.getObjectAddress()));//$NON-NLS-1$
contentText.add(contentTemp.getArgs());
contentData.add(contentTemp.getArgs());
contentText.add(Integer.toString(contentTemp.getTid()));
contentData.add(Integer.toString(contentTemp.getTid()));
- contentText.add(Long.toString(contentTemp.getReturn()));
+ contentText.add(contentTemp.getHexReturn());
contentData.add(Long.toString(contentTemp.getReturn()));
int apiType = contentTemp.getFdApiType();