setColor("file_access_write",new RGB(131, 207, 232)); //$NON-NLS-1$
setColor("file_access_concurrent_read", new RGB(40, 160, 198)); //$NON-NLS-1$
setColor("file_access_concurrent_write", new RGB(40, 160, 198)); //$NON-NLS-1$
- //setColor("file_lock_acquired", new RGB(216, 160, 76)); //$NON-NLS-1$
- //setColor("file_lock_waiting", new RGB(238, 122, 67)); //$NON-NLS-1$
setColor("file_lock_acquired", new RGB(229, 123, 206)); //$NON-NLS-1$
setColor("file_lock_waiting", new RGB(194, 79, 167)); //$NON-NLS-1$
setColor("file_other_operation", new RGB(173, 173, 173)); //$NON-NLS-1$
setColor("file_other_operation", new RGB(173, 173, 173)); //$NON-NLS-1$
- //setColor("file_opened", new RGB(141, 180, 70)); //$NON-NLS-1$
- //setColor("file_duplicate_opened", new RGB(125, 161, 60)); //$NON-NLS-1$
setColor("file_opened", new RGB(90, 200, 177)); //$NON-NLS-1$
setColor("file_duplicate_opened", new RGB(71, 169, 149)); //$NON-NLS-1$
public static String FILE_CHART_ACCESS;
public static String FILE_CHART_TOOLTIP_CLOSED;
- public static String FILE_CHART_TOOLTIP_OPEND;
+ public static String FILE_CHART_TOOLTIP_OPENED;
+ public static String FILE_CHART_TOOLTIP_DUPLICATED_OPENED;
public static String FILE_CHART_TOOLTIP_USED;
public static String FILE_CHART_TOOLTIP_WRITE;
FILE_CHART_LOCK=LOCK
FILE_CHART_TOOLTIP_CLOSED=CLOSED
-FILE_CHART_TOOLTIP_OPEND=OPENED
+FILE_CHART_TOOLTIP_OPENED=OPENED
+FILE_CHART_TOOLTIP_DUPLICATED_OPENED=DUPLICATED OPENED
FILE_CHART_TOOLTIP_USED=USED
FILE_CHART_TOOLTIP_WRITE=WRITE
import org.eclipse.swt.graphics.Color;
import org.tizen.dynamicanalyzer.logparser.LogCenterConstants;
import org.tizen.dynamicanalyzer.nl.FilePageLabels;
+import org.tizen.dynamicanalyzer.project.FunctionNameManager;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.ui.file.model.FileAccess;
import org.tizen.dynamicanalyzer.ui.file.model.FileEvent;
continue;
}
double time = event.getTime() / TimelineConstants.MEGA_DOUBLE;
- String apiName = event.getApiName();
+ String apiName = FunctionNameManager.getFunctionName(event.getApiId());
Color color = ColorResources.FILE_API_FAILED;
DAChartSeriesItem seriesItem = new DAChartSeriesItem(time,
time, DAChartSeriesItem.SERIES_AREA_START,
ColorResources.FILE_DUPLICATE_OPENED,
ColorResources.FILE_DUPLICATE_OPENED,
- FilePageLabels.FILE_CHART_TOOLTIP_OPEND));
+ FilePageLabels.FILE_CHART_TOOLTIP_DUPLICATED_OPENED));
}else{
// the file has been opened by only one process or thread
openNum++;
time, DAChartSeriesItem.SERIES_AREA_START,
ColorResources.FILE_OPENED,
ColorResources.FILE_OPENED,
- FilePageLabels.FILE_CHART_TOOLTIP_OPEND));
+ FilePageLabels.FILE_CHART_TOOLTIP_OPENED));
}
break;
case LogCenterConstants.FD_API_TYPE_CLOSE:
time, DAChartSeriesItem.SERIES_AREA_END,
ColorResources.FILE_OPENED,
ColorResources.FILE_OPENED,
- FilePageLabels.FILE_CHART_TOOLTIP_CLOSED));
+ FilePageLabels.FILE_CHART_TOOLTIP_OPENED));
openNum = 0;
closeNum = 0;
} else {
time, DAChartSeriesItem.SERIES_AREA_END,
ColorResources.FILE_DUPLICATE_OPENED,
ColorResources.FILE_OPENED,
- FilePageLabels.FILE_CHART_TOOLTIP_CLOSED));
+ FilePageLabels.FILE_CHART_TOOLTIP_DUPLICATED_OPENED));
}
break;
}
import java.util.Map;
import org.eclipse.swt.widgets.Composite;
+import org.tizen.dynamicanalyzer.common.AnalyzerManager;
import org.tizen.dynamicanalyzer.common.DALimit;
+import org.tizen.dynamicanalyzer.common.GlobalInformation;
import org.tizen.dynamicanalyzer.constant.CommonConstants;
import org.tizen.dynamicanalyzer.nl.FilePageLabels;
import org.tizen.dynamicanalyzer.nl.TimelineChartLabels;
+import org.tizen.dynamicanalyzer.project.ProcessInformation;
+import org.tizen.dynamicanalyzer.project.Project;
import org.tizen.dynamicanalyzer.resources.ColorResources;
import org.tizen.dynamicanalyzer.resources.FontResources;
import org.tizen.dynamicanalyzer.resources.ImageResources;
import org.tizen.dynamicanalyzer.ui.file.model.FileSelectedData;
import org.tizen.dynamicanalyzer.ui.file.model.FileStatus;
import org.tizen.dynamicanalyzer.util.Logger;
+import org.tizen.dynamicanalyzer.utils.AnalyzerUtil;
import org.tizen.dynamicanalyzer.utils.Formatter;
import org.tizen.dynamicanalyzer.widgets.chart.DAChart;
import org.tizen.dynamicanalyzer.widgets.chart.DAChartPlot;
if (parent != null) { // child chart row
DAChartBoardItem parentItem = parent.getItem();
StringBuffer title = new StringBuffer();
- if(fileChart.isTarget()) {
+ /*if(fileChart.isTarget()) {
title.append("Target"+ CommonConstants.NEW_LINE);
} else {
title.append("Non-Target"+ CommonConstants.NEW_LINE);
+ }*/
+ String processName = AnalyzerUtil.getProcessName(fileChart.getPid());
+ if(processName != null) {
+ title.append(processName + CommonConstants.NEW_LINE);
+ }else{
+ title.append("Unknown" + CommonConstants.NEW_LINE);
}
title.append(fileChart.getPid() + "(PID)"
+ CommonConstants.NEW_LINE + fileChart.getTid() + "(TID)");
filePath = splitPath[0];
fd = Long.parseLong(splitPath[1]);
FileEvent openEvent = null;
-
+
// filtering out non-target files that user in not interested
if(accessedFilePathList.contains(filePath)) {
// target file
}
int entrySeq = profileData.getEntrySeq();
if(entryMap.containsKey(entrySeq)) {
- Logger.debug(">> syscall end :seq:" + seq + ", pid:" + pid
+ Logger.debug(">> syscall entrySeq:" + + entrySeq + "endseq:" + seq + ", pid:" + pid
+ ", tid:" + tid + ", type:" + eventType);
event = entryMap.get(entrySeq);
switch(eventType) {