private void processImage(final String from) {
final String fileName = getImageName(from);
final String to = AnalyzerManager.getProject().getSavePath()
- + File.separator
- + AnalyzerConstants.IMAGE_FOLDER_NAME + File.separator
- + fileName;
+ + File.separator + AnalyzerConstants.IMAGE_FOLDER_NAME
+ + File.separator + fileName;
new Thread(null, new Runnable() {
@Override
});
System.out
.println("stop log process thread call by process terminated"); //$NON-NLS-1$
-// AnalyzerManager.runStopLogProcessThread();
+ // AnalyzerManager.runStopLogProcessThread();
ResourceCommunicator.setCallStop(false);
}
@Override
public void run() {
StateManager.getInstance().StopProcessStart(
- AnalyzerLabels.STOP_PROCESS_DLG_ERROR_3); //socket timeout
+ AnalyzerLabels.STOP_PROCESS_DLG_ERROR_3); // socket
+ // timeout
}
});
System.out
.println("stop log process thread call by socket time out"); //$NON-NLS-1$
-// AnalyzerManager.runStopLogProcessThread();
+ // AnalyzerManager.runStopLogProcessThread();
} finally {
message = null;
AnalyzerLabels.STOP_PROCESS_DLG_ERROR_2);
}
});
- System.out
- .println("finally part run stop log process thread"); //$NON-NLS-1$
+ System.out.println("finally part run stop log process thread"); //$NON-NLS-1$
AnalyzerManager.runStopLogProcessThread();
}
}
public static final int FD_TYPE_FILE = 0;
public static final int FD_TYPE_SOCKET = 1;
+ public static final int FD_TYPE_THREAD = 2;
public static final String FD_API_TYPE_OPEN = "0"; //$NON-NLS-1$
public static final String FD_API_TYPE_CLOSE = "1"; //$NON-NLS-1$
public void clear() {
if (null != rows) {
rows.clear();
- rows = null;
}
if (null != column) {
column.clear();
- column = null;
}
// if(null != warning){
// warning.clear();
- // warning = null;
// }
if (null != failed) {
failed.clear();
- failed = null;
}
}
package org.tizen.dynamicanalyzer.ui.views.threadPage;
import org.eclipse.nebula.widgets.grid.Grid;
-import org.eclipse.nebula.widgets.grid.GridItem;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
return;
}
PageChartItem item = threadChart.GetItems().get(chart.getSelectionIndex());
- System.out.println("threadChart item" + threadChart.GetItems().get(chart.getSelectionIndex())); //$NON-NLS-1$
- System.out.println("item select!!!!" + ((Grid)(e.widget)).getSelectionIndex()); //$NON-NLS-1$
+// System.out.println("threadChart item" + threadChart.GetItems().get(chart.getSelectionIndex())); //$NON-NLS-1$
+// System.out.println("item select!!!!" + ((Grid)(e.widget)).getSelectionIndex()); //$NON-NLS-1$
DASelectionData data = new DASelectionData(ID, 0, 0, item, chart);
AnalyzerManager.getCurrentPage().updatePage(data);
}
@Override
public void clear() {
threadChart.clear();
+ ThreadPageDataManager.getInstance().clear();
}
@Override
for (int i = 0; i < size; i++) {
List<String> input = inputs.get(i);
-
if (AnalyzerUtil.isInternal(input, false)) {
continue;
}
String fdType = input.get(LogCenterConstants.RESOURCE_FDTYPE_INDEX);
int type = Integer.parseInt(fdType);
- if (type != 2) {
+ if (type != LogCenterConstants.FD_TYPE_THREAD) {
continue;
}
ret.add(input);
public void clear() {
super.clear();
- instance = null;
+// instance = null;
}
-
}
public void clear() {
chart.removeAll();
+ items.clear();
}
private long ComputeTumbTime() {
PageChartGraphItem graphItem;
int graphItemSize;
+ long startPeriodTime = 0;
if (null != graphItems) {
graphItemSize = graphItems.size();
// draw period
graphItem = graphItems.get(i);
if((graphItem.getStyle() & PageChartGraphItem.PAGECHART_GRAPHITEM_STATUS_EVENT_PERIOD_START) != 0){
bPeriodStart = true;
- long startPeriodTime = graphItem.getX();
+ startPeriodTime = graphItem.getX();
for(; i < graphItemSize; i++){
graphItem = graphItems.get(i);
if((graphItem.getStyle() & PageChartGraphItem.PAGECHART_GRAPHITEM_STATUS_EVENT_PERIOD_END) != 0){
long endPeriodTime = graphItem.getX();
if(endPeriodTime > startTime){
drawPeriod(gc, startPeriodTime, endPeriodTime, true);
- bPeriodStart = false;
}
+ bPeriodStart = false;
break;
}
else{
continue;
}
}
- if(bPeriodStart == true){
- drawPeriod(gc, startPeriodTime, lastTime, false);
- }
+// if(bPeriodStart == true){
+// drawPeriod(gc, startPeriodTime, lastTime, false);
+// bPeriodStart = false;
+// }
}
}
- if (graphItemSize > 1) {
- drawPeriod(gc, graphItems.get(0).getX(),
- graphItems.get(graphItemSize - 1).getX(), false);
+ if (bPeriodStart == true && graphItemSize > 1) {
+ drawPeriod(gc, startPeriodTime, lastTime, false);
+// drawPeriod(gc, graphItems.get(0).getX(),
+// graphItems.get(graphItemSize - 1).getX(), false);
}
// draw event