providerName=Samsung Electronics\r
\r
#Product name, Application Name\r
-DynamicAnalyzer=Dynamic Analyzer\r
+DynamicAnalyzer=Tizen Dynamic Analyzer\r
\r
#Perspective name\r
MainPerspective=MainPerspective
\ No newline at end of file
// shell window background color\r
public static Color WINDOW_BG_COLOR = getColor("window_bg_color"); //$NON-NLS-1$\r
\r
- public static Color DIALOG_BG_UPPER = getColor("dialg_bg_upper");\r
- public static Color DIALOG_BG_LOWER = getColor("dialg_bg_lower");\r
- public static Color DIALOG_SUNKEN_1 = getColor("dialg_sunken_1");\r
- public static Color DIALOG_SUNKEN_2 = getColor("dialg_sunken_2");\r
+ public static Color DIALOG_BG_UPPER = getColor("dialg_bg_upper");//$NON-NLS-1$\r
+ public static Color DIALOG_BG_LOWER = getColor("dialg_bg_lower");//$NON-NLS-1$\r
+ public static Color DIALOG_SUNKEN_1 = getColor("dialg_sunken_1");//$NON-NLS-1$\r
+ public static Color DIALOG_SUNKEN_2 = getColor("dialg_sunken_2");//$NON-NLS-1$\r
\r
- public static Color EDIT_CHART_DIALOG_UPPER = getColor("edit_chart_dialog_upper");\r
- public static Color EDIT_CHART_DIALOG_LOWER = getColor("edit_chart_dialog_lower");\r
+ public static Color EDIT_CHART_DIALOG_UPPER = getColor("edit_chart_dialog_upper");//$NON-NLS-1$\r
+ public static Color EDIT_CHART_DIALOG_LOWER = getColor("edit_chart_dialog_lower");//$NON-NLS-1$\r
\r
public static Color VIEW_BORDER = getColor("view_border"); //$NON-NLS-1$\r
public static Color VIEW_BG_COLOR = getColor("view_bg_color"); //$NON-NLS-1$\r
- public static Color VIEW_TITLE_FONT_COLOR = getColor("view_title_font_color");\r
+ public static Color VIEW_TITLE_FONT_COLOR = getColor("view_title_font_color");//$NON-NLS-1$\r
\r
/** title bar colors **/\r
public static Color TITLEBAR_TEXT_COLOR = getColor("titlebar_text_color"); //$NON-NLS-1$\r
\r
/** Coolbar bg color **/\r
public static Color COOLBAR_BG_COLOR = getColor("coolbar_bg_color"); //$NON-NLS-1$\r
- public static Color DEFAULT_FONT_COLOR = getColor("default_font_color");\r
+ public static Color DEFAULT_FONT_COLOR = getColor("default_font_color");//$NON-NLS-1$\r
\r
/** device and application combo specific colors start **/\r
public static Color DEVICE_APPLICATION_ENABLE = getColor("device_application_enable_font"); //$NON-NLS-1$\r
/** common table colors end **/\r
\r
/** open trace popup colors **/\r
- public static Color OPEN_TRACE_LABEL_COLOR = getColor("open_trace_label_color");\r
- public static Color OPEN_TRACE_SAVE_CONTENTS_COLOR = getColor("open_trace_save_contents_color");\r
- public static Color OPEN_TRACE_TEMP_CONTENTS_COLOR = getColor("open_trace_temp_contents_color");\r
- public static Color OPEN_TRACE_TABLE_OUTLINE_COLOR = getColor("open_trace_table_outline_color");\r
+ public static Color OPEN_TRACE_LABEL_COLOR = getColor("open_trace_label_color");//$NON-NLS-1$\r
+ public static Color OPEN_TRACE_SAVE_CONTENTS_COLOR = getColor("open_trace_save_contents_color");//$NON-NLS-1$\r
+ public static Color OPEN_TRACE_TEMP_CONTENTS_COLOR = getColor("open_trace_temp_contents_color");//$NON-NLS-1$\r
+ public static Color OPEN_TRACE_TABLE_OUTLINE_COLOR = getColor("open_trace_table_outline_color");//$NON-NLS-1$\r
\r
- public static Color OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR1 = getColor("open_trace_table_content_normal_color1");\r
- public static Color OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR1 = getColor("open_trace_table_content_hover_color1");\r
- public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR1 = getColor("open_trace_table_content_selected_start_color1");\r
- public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR1 = getColor("open_trace_table_content_selected_end_color1");\r
+ public static Color OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR1 = getColor("open_trace_table_content_normal_color1");//$NON-NLS-1$\r
+ public static Color OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR1 = getColor("open_trace_table_content_hover_color1");//$NON-NLS-1$\r
+ public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR1 = getColor("open_trace_table_content_selected_start_color1");//$NON-NLS-1$\r
+ public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR1 = getColor("open_trace_table_content_selected_end_color1");//$NON-NLS-1$\r
\r
- public static Color OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR2 = getColor("open_trace_table_content_normal_color2");\r
- public static Color OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR2 = getColor("open_trace_table_content_hover_color2");\r
- public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR2 = getColor("open_trace_table_content_selected_start_color2");\r
- public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR2 = getColor("open_trace_table_content_selected_end_color2");\r
+ public static Color OPEN_TRACE_TABLE_CONTENT_NORMAL_COLOR2 = getColor("open_trace_table_content_normal_color2");//$NON-NLS-1$\r
+ public static Color OPEN_TRACE_TABLE_CONTENT_HOVER_COLOR2 = getColor("open_trace_table_content_hover_color2");//$NON-NLS-1$\r
+ public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_START_COLOR2 = getColor("open_trace_table_content_selected_start_color2");//$NON-NLS-1$\r
+ public static Color OPEN_TRACE_TABLE_CONTENT_SELECTED_END_COLOR2 = getColor("open_trace_table_content_selected_end_color2");//$NON-NLS-1$\r
\r
- public static Color OPEN_TRACE_BUTTON_COMPOSITE_BG_COLOR = getColor("open_trace_button_composite_bg_color");\r
+ public static Color OPEN_TRACE_BUTTON_COMPOSITE_BG_COLOR = getColor("open_trace_button_composite_bg_color");//$NON-NLS-1$\r
\r
public static Color OPEN_TRACE_POPUP_CONTENTS_BG_COLOR = getColor("open_trace_popup_contents_bg_color"); //$NON-NLS-1$\r
public static Color OPEN_TRACE_POPUP_BOTTOM_BG_COLOR = getColor("open_trace_popup_bottom_bg_color"); //$NON-NLS-1$\r
public static Color FILE_CHART_CHILD_BG_START = getColor("file_chart_child_bg_start"); //$NON-NLS-1$\r
public static Color FILE_CHART_CHILD_BG_END = getColor("file_chart_child_bg_end"); //$NON-NLS-1$\r
\r
- public static Color FILE_CHART_GRADATION_COLOR = getColor("file_chart_gradation_color");\r
+ public static Color FILE_CHART_GRADATION_COLOR = getColor("file_chart_gradation_color");//$NON-NLS-1$\r
\r
- public static Color FILE_CHART_SELECTED_FONT_COLOR = getColor("file_chart_selected_font_color");\r
- public static Color FILE_CHART_NORMAL_FONT_COLOR = getColor("file_chart_normal_font_color");\r
+ public static Color FILE_CHART_SELECTED_FONT_COLOR = getColor("file_chart_selected_font_color");//$NON-NLS-1$\r
+ public static Color FILE_CHART_NORMAL_FONT_COLOR = getColor("file_chart_normal_font_color");//$NON-NLS-1$\r
\r
public static Color UNSELECTED_TAB_FIRST = getColor("unselected_tab_first"); //$NON-NLS-1$\r
public static Color UNSELECTED_TAB_SECOND = getColor("unselected_tab_second"); //$NON-NLS-1$\r
if (data == null) {\r
;\r
data = new HashMap<String, String>();\r
- return "";\r
+ return ""; //$NON-NLS-1$\r
}\r
String ret = data.get(key);\r
if (null == ret)\r
int size = appList.size();
for (int i = 0; i < size;) {
if (i % 2 == 0 && i + 1 >= size) {
- System.out.println(" Multi line app list!!" + appList.get(i));
+ System.out.println(" Multi line app list!!" + appList.get(i)); //$NON-NLS-1$
reservedApplicationList = appList.get(i);
break;
}
Font OSFont = PlatformUI.getWorkbench().getDisplay().getSystemFont();\r
if (AnalyzerUtil.isLinux()) \r
{\r
- OSFont = getFont("ex_font", new FontData[] { new FontData("Dejavu Sans", 9, SWT.NORMAL) });\r
+ OSFont = getFont("ex_font", new FontData[] { new FontData("Dejavu Sans", 9, SWT.NORMAL) }); //$NON-NLS-1$ //$NON-NLS-2$\r
} \r
else if (AnalyzerUtil.isWin()) \r
{\r
\r
- OSFont = getFont("ex_font", new FontData[] { new FontData("Verdana", 9, SWT.NORMAL) });\r
+ OSFont = getFont("ex_font", new FontData[] { new FontData("Verdana", 9, SWT.NORMAL) }); //$NON-NLS-1$ //$NON-NLS-2$\r
}\r
return OSFont;\r
}\r
baseAddr);
String prevFunctionName = functionName;
functionName = SymbolNameDemangler.nameDemangle(prevFunctionName);
- if (functionName.startsWith("_Z")) {
- System.out.println("at setFuncName : " + prevFunctionName + " after function name:" + functionName);
+ if (functionName.startsWith("_Z")) { //$NON-NLS-1$
+ System.out.println("at setFuncName : " + prevFunctionName + " after function name:" + functionName); //$NON-NLS-1$ //$NON-NLS-2$
}
input[LogCenterConstants.APINAME_INDEX] = functionName;
}
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.PlatformUI;
import org.tizen.dynamicanalyzer.constants.AnalyzerConstants;
+import org.tizen.dynamicanalyzer.nl.AnalyzerLabels;
import org.tizen.dynamicanalyzer.utils.AnalyzerUtil;
import org.tizen.dynamicanalyzer.widgets.button.DACustomButton;
import org.tizen.dynamicanalyzer.widgets.button.DACustomButtonClickEventListener;
public class PathManager {
public static String getRegistryValue(String node, String key) {
BufferedReader br = null;
- String value = "";
+ String value = ""; //$NON-NLS-1$
- String query = "reg query " + "\"" + node + "\" /v " + "\"" + key + "\"";
+ String query = "reg query " + "\"" + node + "\" /v " + "\"" + key + "\""; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
try {
Process process = Runtime.getRuntime().exec(query);
- String encoding = System.getProperty("sun.jnu.encoding");
+ String encoding = System.getProperty("sun.jnu.encoding"); //$NON-NLS-1$
br = new BufferedReader(new InputStreamReader(process.getInputStream(), encoding));
String line = null;
while ((line = br.readLine()) != null) {
- int index = line.indexOf("REG_SZ");
+ int index = line.indexOf("REG_SZ"); //$NON-NLS-1$
if (index >= 0) {
- value = line.substring(index + "REG_SZ".length()).trim();
+ value = line.substring(index + "REG_SZ".length()).trim(); //$NON-NLS-1$
}
}
} catch (IOException e) {
public static String getSdbPath() {
String path = AnalyzerConstants.TIZEN_ROOT_PATH;
if (null != path) {
- path += File.separator + "tools" + File.separator + "sdb";
+ path += File.separator + "tools" + File.separator + "sdb"; //$NON-NLS-1$ //$NON-NLS-2$
}
return path;
}
DADialog dialog = daDailog;
dialog.setBgColor(ColorResources.VIEW_BG_COLOR);
dialog.setIcon(ImageResources.DYNAIC_ANALYZER_ICON);
- dialog.setMessage("Please install the Tizen SDK");
+ dialog.setMessage(AnalyzerLabels.PATH_WARNING);
dialog.getOkButton().addClickListener(new DACustomButtonClickEventListener() {
ConfigureManager.INTERNALCALL)
+ AnalyzerConstants.CMD_SPLIT
+ ResourceCommunicator.getSelectedApp().getExecPath();
- System.out.println("Send message :" + message);
+ System.out.println("Send message :" + message); //$NON-NLS-1$
sendMessage(message);
}
\r
public static final String WIN_INSTALL_NODE =\r
"HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders";//$NON-NLS-1$\r
- public static final String WIN_INSTALL_KEY = "Local AppData";\r
+ public static final String WIN_INSTALL_KEY = "Local AppData"; //$NON-NLS-1$\r
\r
public static final String LINUX_INSTALL_ENV = "HOME";//$NON-NLS-1$\r
public static final String ARM_ARCH = "arm"; //$NON-NLS-1$\r
public static String DEVICE_INFO_NAME_TOTAL_MEMORY = "TotalMemory"; //$NON-NLS-1$
public static String DEVICE_INFO_NAME_TOTAL_DRIVE = "TotalDrive"; //$NON-NLS-1$
- public static String DEVICE_WIFI_STATUS_OFF = "OFF";
- public static String DEVICE_WIFI_STATUS_ENABLED = "Unconnected";
- public static String DEVICE_WIFI_STATUS_CONNECTED = "Connected";
- public static String DEVICE_WIFI_STATUS_TRANSFER = "Transfer";
+ public static String DEVICE_WIFI_STATUS_OFF = "OFF"; //$NON-NLS-1$
+ public static String DEVICE_WIFI_STATUS_ENABLED = "Unconnected"; //$NON-NLS-1$
+ public static String DEVICE_WIFI_STATUS_CONNECTED = "Connected"; //$NON-NLS-1$
+ public static String DEVICE_WIFI_STATUS_TRANSFER = "Transfer"; //$NON-NLS-1$
public static final int DEVICE_WIFI_VALUE_DISABLED = 0;
public static final int DEVICE_WIFI_VALUE_ENABLED = 1;
public static final int DEVICE_WIFI_VALUE_CONNECTED = 2;
public static final int DEVICE_WIFI_VALUE_TRANSFER = 3;
- public static String DEVICE_BT_STATUS_OFF = "OFF";
- public static String DEVICE_BT_STATUS_ENABLED = "ON";
- public static String DEVICE_BT_STATUS_CONNECTED = "Visible";
- public static String DEVICE_BT_STATUS_TRANSFER = "Transfer";
+ public static String DEVICE_BT_STATUS_OFF = "OFF"; //$NON-NLS-1$
+ public static String DEVICE_BT_STATUS_ENABLED = "ON"; //$NON-NLS-1$
+ public static String DEVICE_BT_STATUS_CONNECTED = "Visible"; //$NON-NLS-1$
+ public static String DEVICE_BT_STATUS_TRANSFER = "Transfer"; //$NON-NLS-1$
public static final int DEVICE_BT_VALUE_DISABLED = 0;
public static final int DEVICE_BT_VALUE_ENABLED = 1;
public static final int DEVICE_BT_VALUE_CONNECTED = 2;
public static final int DEVICE_BT_VALUE_TRANSFER = 3;
- public static String DEVICE_GPS_STATUS_OFF = "OFF";
- public static String DEVICE_GPS_STATUS_ENABLED = "SEARCHING";
- public static String DEVICE_GPS_STATUS_CONNECTED = "CONNECTED";
+ public static String DEVICE_GPS_STATUS_OFF = "OFF"; //$NON-NLS-1$
+ public static String DEVICE_GPS_STATUS_ENABLED = "SEARCHING"; //$NON-NLS-1$
+ public static String DEVICE_GPS_STATUS_CONNECTED = "CONNECTED"; //$NON-NLS-1$
public static final int DEVICE_GPS_VALUE_DISABLED = 0;
public static final int DEVICE_GPS_VALUE_ENABLED = 1;
public static final int DEVICE_DNET_VALUE_DISABLED = 0;
public static final int DEVICE_DNET_VALUE_ENABLED = 1;
- public static String DEVICE_CAMERA_STATUS_OFF = "OFF";
- public static String DEVICE_CAMERA_STATUS_ON = "ON";
- public static String DEVICE_CAMERA_STATUS_PREVIEW = "Preview";
- public static String DEVICE_CAMERA_STATUS_PREVIEW_LOCK = "Preview Lock";
- public static String DEVICE_CAMERA_STATUS_CAPTURING = "Capturing";
- public static String DEVICE_CAMERA_STATUS_RECORDING = "Recording";
- public static String DEVICE_CAMERA_STATUS_RECORDING_LOCK = "Recording Lock";
- public static String DEVICE_CAMERA_STATUS_REVIEW = "Review";
+ public static String DEVICE_CAMERA_STATUS_OFF = "OFF"; //$NON-NLS-1$
+ public static String DEVICE_CAMERA_STATUS_ON = "ON"; //$NON-NLS-1$
+ public static String DEVICE_CAMERA_STATUS_PREVIEW = "Preview"; //$NON-NLS-1$
+ public static String DEVICE_CAMERA_STATUS_PREVIEW_LOCK = "Preview Lock"; //$NON-NLS-1$
+ public static String DEVICE_CAMERA_STATUS_CAPTURING = "Capturing"; //$NON-NLS-1$
+ public static String DEVICE_CAMERA_STATUS_RECORDING = "Recording"; //$NON-NLS-1$
+ public static String DEVICE_CAMERA_STATUS_RECORDING_LOCK = "Recording Lock"; //$NON-NLS-1$
+ public static String DEVICE_CAMERA_STATUS_REVIEW = "Review"; //$NON-NLS-1$
public static final int DEVICE_CAMERA_VALUE_OFF = 0;
public static final int DEVICE_CAMERA_VALUE_ON = 1;
public static final int DEVICE_CAMERA_VALUE_RECORDING_LOCK = 6;
public static final int DEVICE_CAMERA_VALUE_REVIEW = 7;
- public static String DEVICE_SOUND_STATUS_OFF = "OFF";
- public static String DEVICE_SOUND_STATUS_ON = "ON";
+ public static String DEVICE_SOUND_STATUS_OFF = "OFF"; //$NON-NLS-1$
+ public static String DEVICE_SOUND_STATUS_ON = "ON"; //$NON-NLS-1$
public static final int DEVICE_SOUND_VALUE_OFF = 0;
public static final int DEVICE_SOUND_VALUE_ON = 1;
- public static String DEVICE_AUDIO_STATUS_SPEAKER = "Speaker";
- public static String DEVICE_AUDIO_STATUS_HEADPHONE = "Headphone";
+ public static String DEVICE_AUDIO_STATUS_SPEAKER = "Speaker"; //$NON-NLS-1$
+ public static String DEVICE_AUDIO_STATUS_HEADPHONE = "Headphone"; //$NON-NLS-1$
public static final int DEVICE_AUDIO_VALUE_SPEAKER = 1;// 1
public static final int DEVICE_AUDIO_VALUE_HEADPHONE = 2;
- public static String DEVICE_VIBRATION_STATUS_OFF = "OFF";
- public static String DEVICE_VIBRATION_STATUS_ON = "ON";
+ public static String DEVICE_VIBRATION_STATUS_OFF = "OFF"; //$NON-NLS-1$
+ public static String DEVICE_VIBRATION_STATUS_ON = "ON"; //$NON-NLS-1$
public static final int DEVICE_VIBRATION_VALUE_OFF = 0;
public static final int DEVICE_VIBRATION_VALUE_ON = 1;
String sourcePath = project.getSavePath();\r
String[] splitSourcePath = null;\r
if (AnalyzerUtil.isWin()) {\r
- splitSourcePath = sourcePath.split("\\\\");\r
+ splitSourcePath = sourcePath.split("\\\\"); //$NON-NLS-1$\r
} else if (AnalyzerUtil.isMac()) {\r
- splitSourcePath = sourcePath.split("\\/");\r
+ splitSourcePath = sourcePath.split("\\/"); //$NON-NLS-1$\r
} else {\r
- splitSourcePath = sourcePath.split("\\/");\r
+ splitSourcePath = sourcePath.split("\\/"); //$NON-NLS-1$\r
}\r
\r
String saveName = new String(\r
address = addr;
this.originSymbol = symbol;
- path = "";
- functionName = "";
- offset = "";
- etc = "";
+ path = ""; //$NON-NLS-1$
+ functionName = ""; //$NON-NLS-1$
+ offset = ""; //$NON-NLS-1$
+ etc = ""; //$NON-NLS-1$
makeCallstackData();
}
private void makeCallstackData() {
- String[] splitPath = originSymbol.split("\\(");
+ String[] splitPath = originSymbol.split("\\("); //$NON-NLS-1$
path = splitPath[0];
- if (!path.startsWith("/") && !path.contains(FunctionUsageProfiler.APPLICATION)
+ if (!path.startsWith("/") && !path.contains(FunctionUsageProfiler.APPLICATION) //$NON-NLS-1$
&& !path.contains(FunctionUsageProfiler.DEPENDENT_LIB)) {
path = UNKNOWN;
}
functionName =
SymbolManager.addr2func(binPath, Long.toString(address), isPieBuild, baseAddr);
// FIXME: hard coding
- if (functionName.equals("_end")) {
+ if (functionName.equals("_end")) { //$NON-NLS-1$
functionName = UNKNOWN;
}
String prevFunctionName = functionName;
functionName = SymbolNameDemangler.nameDemangle(prevFunctionName);
- if (functionName.startsWith("_Z")) {
- System.out.println("at Callstack Unit : " + prevFunctionName + " after function name:" + functionName);
+ if (functionName.startsWith("_Z")) { //$NON-NLS-1$
+ System.out.println("at Callstack Unit : " + prevFunctionName + " after function name:" + functionName); //$NON-NLS-1$ //$NON-NLS-2$
}
} else {
- String[] splitFunc = splitPath[1].split("\\+");
+ String[] splitFunc = splitPath[1].split("\\+"); //$NON-NLS-1$
if (splitFunc.length != 0) {
functionName = splitFunc[0];
if (functionName.isEmpty()) {
SymbolManager.addr2func(binPath, Long.toString(address), isPieBuild,
baseAddr);
// FIXME: hard coding
- if (functionName.equals("_end")) {
+ if (functionName.equals("_end")) { //$NON-NLS-1$
functionName = UNKNOWN;
}
}
public static String OPEN_TRACE_DLG_TEMP_FILE;
public static String OPEN_TRACE_DLG_TEMP_FILE_NAME;
public static String OPEN_TRACE_DLG_TRACE_FILE_NAME;
+
+ public static String PATH_WARNING;
public static String STOP_PROCESS_DLG_PLEASE_WAIT;
public static String STOP_PROCESS_DLG_SUMMARIZING_DATA;
OPEN_TRACE_DLG_TEMP_FILE_NAME=Trace file name
OPEN_TRACE_DLG_TRACE_FILE_NAME=Trace file name
+PATH_WARNING=Please install the Tizen SDK
+
STOP_PROCESS_DLG_PLEASE_WAIT=please wait...
STOP_PROCESS_DLG_SUMMARIZING_DATA=Summarizing collected data
STOP_PROCESS_DLG_DEVICE_DISCONNECTED=Device disconnected
+++ /dev/null
-package org.tizen.dynamicanalyzer.nl;\r
-\r
-import org.eclipse.osgi.util.NLS;\r
-\r
-public class AnalyzerMessages {\r
-\r
- private static final String BUNDLE_NAME = "org.tizen.dynamicanalyzer.nl.AnalyzerMessages"; //$NON-NLS-1$\r
-\r
- static {\r
- NLS.initializeMessages(BUNDLE_NAME, AnalyzerMessages.class);\r
- }\r
-\r
- private AnalyzerMessages() {\r
- }\r
-}\r
public void setAppComboText(String text) {
AppDesktopInfo appInfo = DACommunicator.getAppDesktopInfoByName(text);
if (null != appInfo) {
- System.out.println("combo set communicator appinfo :"
- + appInfo.getName() + " exec : " + appInfo.getExecPath());
+ System.out.println("combo set communicator appinfo :" //$NON-NLS-1$
+ + appInfo.getName() + " exec : " + appInfo.getExecPath()); //$NON-NLS-1$
DACommunicator.setSelectedApp(appInfo);
appCombo.setText(text);
}
if (null != deviceName && null != appName && !deviceName.isEmpty()
&& !appName.isEmpty()) {
if (!isCorrectDevice(deviceName)) {
- System.out.println("wrong device");
+ System.out.println("wrong device"); //$NON-NLS-1$
return;
}
CoolbarArea.getInstance().setDeviceComboText(deviceName);
if (!isCorrectApplication(appName)) {
- System.out.println("wrong application");
+ System.out.println("wrong application"); //$NON-NLS-1$
return;
}
CoolbarArea.getInstance().setAppComboText(appName);
}
String[] cpuRates = input.get(
LogCenterConstants.DEVICE_SYSTEM_CPU_USAGE_INDEX + 1)
- .split(",");
+ .split(","); //$NON-NLS-1$
cpuUsage.clear();
for (int i = 0; i < cpuRates.length - 1; i++) {
String cpu = cpuRates[i].trim();
List<String> input = inputs.get(lastIndex);
String[] cpuRates = input.get(
- LogCenterConstants.DEVICE_SYSTEM_CPU_USAGE_INDEX).split(",");
+ LogCenterConstants.DEVICE_SYSTEM_CPU_USAGE_INDEX).split(","); //$NON-NLS-1$
// String cpu = cpuRates[cpuRates.length - 1].trim();
cpuUsage.clear();
for (int i = 0; i < cpuRates.length - 1; i++) {
public void run() {
gridItem = new GridItem(chart.GetInnerChart(), SWT.NONE);
gridItem.setText(text);
- gridItem.setData("graphItems", graphItems);
- gridItem.setData("children", children);
+ gridItem.setData("graphItems", graphItems); //$NON-NLS-1$
+ gridItem.setData("children", children); //$NON-NLS-1$
}
});
}
if(Column.length > i)
SetColumnText(i,Column[i]);
else
- SetColumnText(i,"Column"+i);
+ SetColumnText(i,"Column"+i); //$NON-NLS-1$
if(Column.length > i)
SetColumnAttribute(i,ColumnAttribute[i]);
else
return;
}
PageChartItem item = threadChart.GetItems().get(chart.getSelectionIndex());
- System.out.println("threadChart item" + threadChart.GetItems().get(chart.getSelectionIndex()));
- System.out.println("item select!!!!" + ((Grid)(e.widget)).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$
DASelectionData data = new DASelectionData(ID, 0, 0, item, chart);
AnalyzerManager.getCurrentPage().updatePage(data);
}
long end = selData.getEndTime();
String query = "select count(time) from user_function where time < " //$NON-NLS-1$
- + start + " and type = " + LogCenterConstants.USER_FUNCTION_EVENT_TYPE_ENTER + ";"; //$NON-NLS-1$
+ + start + " and type = " + LogCenterConstants.USER_FUNCTION_EVENT_TYPE_ENTER + ";"; //$NON-NLS-1$ //$NON-NLS-2$
int selectionIndex = SqlManager.executeSelectOperation(query);
String countQuery =
"select count(time) from user_function where time >" //$NON-NLS-1$
+ start
- + " and time <= " + end + " and type = " + LogCenterConstants.USER_FUNCTION_EVENT_TYPE_ENTER + ";"; //$NON-NLS-1$
+ + " and time <= " + end + " and type = " + LogCenterConstants.USER_FUNCTION_EVENT_TYPE_ENTER + ";"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
int selectionCount = SqlManager.executeSelectOperation(countQuery);
selectionIndex = ((selectionIndex < 0) && (selectionCount > 0)) ? 0 : selectionIndex;
import org.tizen.dynamicanalyzer.timeline.TimelineComposite;\r
import org.tizen.dynamicanalyzer.ui.views.RangeView;\r
import org.tizen.dynamicanalyzer.ui.views.SnapshotView;\r
-import org.tizen.dynamicanalyzer.ui.views.base.ViewAction;\r
import org.tizen.dynamicanalyzer.ui.widgets.DATabComposite;\r
\r
public class DATimelineTabComposite extends DATabComposite {\r
import org.eclipse.nebula.widgets.grid.GridItem;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Composite;
-import org.tizen.dynamicanalyzer.AnalyzerManager;
-import org.tizen.dynamicanalyzer.constants.AnalyzerConstants;
-import org.tizen.dynamicanalyzer.model.DASelectionData;
-import org.tizen.dynamicanalyzer.ui.views.filePage.FileApiListView;
import org.tizen.dynamicanalyzer.ui.views.pageInfo.PageDataItem;
import org.tizen.dynamicanalyzer.ui.views.pageInfo.PageDataManager;
import org.tizen.dynamicanalyzer.ui.widgets.DATable.DATableComposite;
-import org.tizen.dynamicanalyzer.ui.widgets.tables.FileApiListComparator;
public class DAPageAPIListTable extends DATableComposite {
public DAPageAPIListTable(Composite parent, int compStyle, int tableStyle) {
import org.tizen.dynamicanalyzer.nl.DAPageChartLabels;
import org.tizen.dynamicanalyzer.ui.views.pageInfo.PageChartGraphItem;
import org.tizen.dynamicanalyzer.ui.views.pageInfo.PageChartItem;
-import org.tizen.dynamicanalyzer.ui.widgets.DATable.DATableEmptyCellRenderer;
import org.tizen.dynamicanalyzer.ui.widgets.DATable.DATableEmptyColumnHeaderRenderer;
import org.tizen.dynamicanalyzer.utils.AnalyzerUtil;
if (items != null && items.size() != 0) {
for (int i = 0; i < items.size(); i++) {
for (int j = 0; j < depth; j++) {
- System.out.print(" -");
+ System.out.print(" -"); //$NON-NLS-1$
}
item = items.get(i);
- System.out.print(item.GetText() + " : <");
+ System.out.print(item.GetText() + " : <"); //$NON-NLS-1$
graphItems = item.GetGraphItem();
if (graphItems != null && graphItems.size() != 0) {
for (int k = 0; k < graphItems.size(); k++) {
graphItem = graphItems.get(k);
System.out.print(graphItem.getY()
- + ", ");
+ + ", "); //$NON-NLS-1$
}
}
- System.out.println(">");
+ System.out.println(">"); //$NON-NLS-1$
if (item.GetChildren() != null
&& item.GetChildren().size() != 0) {
printItem(item.GetChildren(), depth + 1);
}
} else {
if (depth == 0) {
- System.out.println("no item!!!");
+ System.out.println("no item!!!"); //$NON-NLS-1$
}
}
- System.out.println("\n");
+ System.out.println("\n"); //$NON-NLS-1$
}
public void printItems() {
startTime, r);
List<PageChartItem> children = (List<PageChartItem>) item
- .getData("children");
+ .getData("children"); //$NON-NLS-1$
List<PageChartGraphItem> graphItems = (List<PageChartGraphItem>) item
- .getData("graphItems");
+ .getData("graphItems"); //$NON-NLS-1$
PageChartGraphItem graphItem;
int graphItemSize;
private Label processMessage = null;
private Label processInfo = null;
private ProgressBar progressbar = null;
- private String message = "";
+ private String message = ""; //$NON-NLS-1$
private String infomation = AnalyzerLabels.STOP_PROCESS_DLG_PLEASE_WAIT;
private static final int DEFAULT_WIDTH = 300;
private static final int DEFAULT_HEIGHT = 100;
treeItem.setData(tableData);
tableData.setObject(fuData.getName());
- String exTime = "0", exRate = "0.00", inTime = "0", inRate = "0.00", callCount = "0", exeTime = "0", inExeTime = "0"; //$NON-NLS-1$
+ String exTime = "0", exRate = "0.00", inTime = "0", inRate = "0.00", callCount = "0", exeTime = "0", inExeTime = "0"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ //$NON-NLS-7$
try {
exTime = profiler.getCpuTime(fuData, true);
&& (userFunctionBin == null || userFunctionBin.isEmpty())) {
if (AnalyzerManager.isOsp()) {
userFunctionBin = new String(callstackUnit.getPath()
- + ".exe");
+ + ".exe"); //$NON-NLS-1$
} else {
userFunctionBin = new String(callstackUnit.getPath());
}
import org.tizen.dynamicanalyzer.model.CallStackUnit;
import org.tizen.dynamicanalyzer.model.FunctionUsageProfilingData;
import org.tizen.dynamicanalyzer.model.ProfilingChildData;
-import org.tizen.dynamicanalyzer.nl.InformationViewLabels;
import org.tizen.dynamicanalyzer.nl.SummaryLabels;
public class FunctionUsageProfiler {
public static final long SAMPLE_TIME = 10;
public static final String APPLICATION = SummaryLabels.FUNCTION_USAGE_PROFILER_APPLICATION;
public static final String DEPENDENT_LIB = SummaryLabels.FUNCTION_USAGE_PROFILER_DEPENDENT_LIB;
- public static final String UNKNOWN = InformationViewLabels.CALLSTACK_TABLE_UNKNOWN;
+ public static final String UNKNOWN = "";//$NON-NLS-1$
private int totalSampleCount = 0;
private CallstackTree current = null;
if (type == LogCenterConstants.USER_FUNCTION_EVENT_TYPE_EXIT) {
if (null == current) {
// bug
- System.out.println("bug found!!");
+ System.out.println("bug found!!"); //$NON-NLS-1$
} else {
child.addInclusiveExeTime(current.getInclusiveExeTime());
current = current.getParent();
String symbol = null;
if (AnalyzerManager.isOsp()) {
symbol = AnalyzerManager.getFunctionUserProfiler().getAppBinName()
- + AnalyzerConstants.DOT + "exe"
+ + AnalyzerConstants.DOT + "exe" //$NON-NLS-1$
+ AnalyzerConstants.CALLSTACK_API_TOKEN_STRING + funcName;
} else {
symbol = AnalyzerManager.getFunctionUserProfiler().getAppBinName()