@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
if (!DACommunicator.isSWAPVersion()) {
- String xmlFileName = AnalyzerManager.getProject().getSavePath()
- + RECORD_DATA_FILE_NAME;
+ String xmlFileName = AnalyzerManager.getProject().getSavePath() + RECORD_DATA_FILE_NAME;
if (xmlFileName == null || xmlFileName.isEmpty()) {
return FAILED;
// make replay event
// on/off , replay start time, count, event objs
- ReplayData replayData = ReplayDataManager.getInstance()
- .getReplayDBManager().getReplayLogs(true);
+ ReplayData replayData = ReplayDataManager.getInstance().getReplayDBManager()
+ .getReplayLogs(true);
+ int count = 0;
+ if (null != replayData) {
+ count = replayData.getObjectCount();
+ }
- int count = replayData.getObjectCount();
byte[] eventObjs = null;
for (int i = 0; i < count; i++) {
- eventObjs = ByteUtil.concatByteArray(eventObjs, replayData
- .getRecordEvent().get(i).getByteValues());
+ eventObjs = ByteUtil.concatByteArray(eventObjs, replayData.getRecordEvent().get(i)
+ .getByteValues());
-// System.out.println(" sec : "
-// + replayData.getRecordEvent().get(i).getEventTime()
-// .getSec()
-// + " nano : "
-// + replayData.getRecordEvent().get(i).getEventTime()
-// .getNano() + " id : "
-// + replayData.getRecordEvent().get(i).getEventId()
-// + " code : "
-// + replayData.getRecordEvent().get(i).getEventCode()
-// + " type : "
-// + replayData.getRecordEvent().get(i).getEventType()
-// + " value : "
-// + replayData.getRecordEvent().get(i).getEventValue());
+ // System.out.println(" sec : "
+ // + replayData.getRecordEvent().get(i).getEventTime()
+ // .getSec()
+ // + " nano : "
+ // + replayData.getRecordEvent().get(i).getEventTime()
+ // .getNano() + " id : "
+ // + replayData.getRecordEvent().get(i).getEventId()
+ // + " code : "
+ // + replayData.getRecordEvent().get(i).getEventCode()
+ // + " type : "
+ // + replayData.getRecordEvent().get(i).getEventType()
+ // + " value : "
+ // + replayData.getRecordEvent().get(i).getEventValue());
}
- replayEvent = ByteUtil.getByte(REPLAY_ON, startTime.getSec(),
- startTime.getNano(), count, eventObjs);
+ replayEvent = ByteUtil.getByte(REPLAY_ON, startTime.getSec(), startTime.getNano(),
+ count, eventObjs);
}
return null;
}
} // else nothing
// network tab
- if ((AnalyzerConstants.FEATURE_OFF !=
- configureManager.getValueLong(ConfigureLabels.FEATURE_NETWORK)) ||
- (AnalyzerConstants.FEATURE_OFF !=
- configureManager.getValueLong(ConfigureLabels.FEATURE_MEMORY_ALLOCATION))) {
+ if (AnalyzerConstants.FEATURE_OFF !=
+ configureManager.getValueLong(ConfigureLabels.FEATURE_NETWORK)) {
tabViewList.add(CommonConstants.PAGE_NETWORK);
} // else nothing
initChartMap(ProcessMemoryChart.getInstance());
initChartMap(SystemMemoryChart.getInstance());
initChartMap(ScreenshotChart.getInstance());
- initChartMap(UIEventChart.getInstance());
+// initChartMap(UIEventChart.getInstance());
initChartMap(DiskIOChart.getInstance());
initChartMap(NetworkIOChart.getInstance());
- initChartMap(DeviceChart.getInstance());
+// initChartMap(DeviceChart.getInstance());
initChartMap(EnergyChart.getInstance());
loadSavedChartList();
if (null == data.get(ConfigureLabels.FEATURE_MEMORY_ALLOCATION)) {
data.put(ConfigureLabels.FEATURE_MEMORY_ALLOCATION,
- Long.toString(AnalyzerConstants.FEATURE_OFF));
+ Long.toString(AnalyzerConstants.FEATURE_ALLOCATION));
}
if (null == data.get(ConfigureLabels.FEATURE_FILE)) {
data.put(ConfigureLabels.FEATURE_FILE,
}
if (null == data.get(ConfigureLabels.FEATURE_SCREENSHOT)) {
data.put(ConfigureLabels.FEATURE_SCREENSHOT,
- Long.toString(AnalyzerConstants.FEATURE_OFF));
+ Long.toString(AnalyzerConstants.FEATURE_SCREENSHOT));
}
if (null == data.get(ConfigureLabels.FEATURE_USER_EVENT)) {
data.put(ConfigureLabels.FEATURE_USER_EVENT,
}
if (null == data.get(ConfigureLabels.FEATURE_RECORDING)) {
data.put(ConfigureLabels.FEATURE_RECORDING,
- Long.toString(AnalyzerConstants.FEATURE_OFF));
+ Long.toString(AnalyzerConstants.FEATURE_RECORDING));
}
// if (null == data.get(ConfigureLabels.FEATURE_SYSCALL)) {
data.put(ConfigureLabels.FEATURE_SYSTEM_NETWORK,
Long.toString(AnalyzerConstants.SYSTEM_NETWORK));
}
- if (null == data.get(ConfigureLabels.FEATURE_SYSTEM_NETWORK)) {
- data.put(ConfigureLabels.FEATURE_SYSTEM_NETWORK,
- Long.toString(AnalyzerConstants.SYSTEM_NETWORK));
- }
if (null == data.get(ConfigureLabels.FEATURE_SYSTEM_DEVICE)) {
data.put(ConfigureLabels.FEATURE_SYSTEM_DEVICE,
Long.toString(AnalyzerConstants.SYSTEM_DEVICE));
ConfigureLabels.FEATURE_OPENGL,
// ConfigureLabels.FEATURE_USERINTERFACE,
ConfigureLabels.FEATURE_SCREENSHOT,
- ConfigureLabels.FEATURE_USER_EVENT,
+ // ConfigureLabels.FEATURE_USER_EVENT,
ConfigureLabels.FEATURE_RECORDING,
ConfigureLabels.FEATURE_CONTEXT_SWITCH,
import org.tizen.dynamicanalyzer.common.AnalyzerConstants;
import org.tizen.dynamicanalyzer.ui.widgets.table.DefaultTableComparator;
+import org.tizen.dynamicanalyzer.util.CommonUtil;
public class ConfigurationTableComparator extends DefaultTableComparator {
@Override
public int compare(Object arg0, Object arg1) {
- return 1;
+ if (CommonUtil.isMac()) {
+ return -1;
+ } else {
+ return 1;
+ }
}
}