<ColumnName>Rid</ColumnName>
<ColumnName>ID</ColumnName>
<ColumnName>SeqNumber</ColumnName>
- <ColumnName>ApiName</ColumnName>
+ <ColumnName>APIName</ColumnName>
<ColumnName>Time</ColumnName>
<ColumnName>Pid</ColumnName>
<ColumnName>Error</ColumnName>
<ColumnName>InternalCall</ColumnName>
<ColumnName>Size</ColumnName>
- <ColumnName>ApiType</ColumnName>
+ <ColumnName>APIType</ColumnName>
<ColumnName>Reserved</ColumnName>
<type>INTEGER</type>
<TableColumnName>Row Id</TableColumnName>
<TableColumnName>ID</TableColumnName>
<TableColumnName>#</TableColumnName>
- <TableColumnName>Api name</TableColumnName>
+ <TableColumnName>API name</TableColumnName>
<TableColumnName>Time</TableColumnName>
<TableColumnName>Process id</TableColumnName>
<TableColumnName>Errno</TableColumnName>
<TableColumnName>Internal Call</TableColumnName>
<TableColumnName>Size</TableColumnName>
- <TableColumnName>Api type</TableColumnName>
+ <TableColumnName>API type</TableColumnName>
<TableColumnName>Reserved</TableColumnName>
</BaseLogCenter>
\ No newline at end of file
<ColumnName>Rid</ColumnName>
<ColumnName>ID</ColumnName>
<ColumnName>SeqNumber</ColumnName>
- <ColumnName>ApiName</ColumnName>
+ <ColumnName>APIName</ColumnName>
<ColumnName>Time</ColumnName>
<ColumnName>Pid</ColumnName>
<TableColumnName>Row Id</TableColumnName>
<TableColumnName>ID</TableColumnName>
<TableColumnName>#</TableColumnName>
- <TableColumnName>Api name</TableColumnName>
+ <TableColumnName>API name</TableColumnName>
<TableColumnName>Time</TableColumnName>
<TableColumnName>Process id</TableColumnName>
<ColumnName>Rid</ColumnName>
<ColumnName>ID</ColumnName>
<ColumnName>SeqNumber</ColumnName>
- <ColumnName>ApiName</ColumnName>
+ <ColumnName>APIName</ColumnName>
<ColumnName>Time</ColumnName>
<ColumnName>Pid</ColumnName>
<TableColumnName>Row Id</TableColumnName>
<TableColumnName>ID</TableColumnName>
<TableColumnName>#</TableColumnName>
- <TableColumnName>Api name</TableColumnName>
+ <TableColumnName>API name</TableColumnName>
<TableColumnName>Time</TableColumnName>
<TableColumnName>Process id</TableColumnName>
<ColumnName>Rid</ColumnName>
<ColumnName>ID</ColumnName>
<ColumnName>SeqNumber</ColumnName>
- <ColumnName>ApiName</ColumnName>
+ <ColumnName>APIName</ColumnName>
<ColumnName>Time</ColumnName>
<ColumnName>Pid</ColumnName>
<ColumnName>FDValue</ColumnName>
<ColumnName>FDType</ColumnName>
- <ColumnName>FDApiType</ColumnName>
+ <ColumnName>FDAPIType</ColumnName>
<ColumnName>FileSize</ColumnName>
<ColumnName>FilePath</ColumnName>
<ColumnName>Reserved</ColumnName>
<TableColumnName>Row Id</TableColumnName>
<TableColumnName>ID</TableColumnName>
<TableColumnName>#</TableColumnName>
- <TableColumnName>Api name</TableColumnName>
+ <TableColumnName>API name</TableColumnName>
<TableColumnName>Time</TableColumnName>
<TableColumnName>Process id</TableColumnName>
<TableColumnName>FD value</TableColumnName>
<TableColumnName>FD type</TableColumnName>
- <TableColumnName>FD Api Type</TableColumnName>
+ <TableColumnName>FD API Type</TableColumnName>
<TableColumnName>File Size</TableColumnName>
<TableColumnName>FD api type</TableColumnName>
<TableColumnName>File Path</TableColumnName>
<ColumnName>Rid</ColumnName>
<ColumnName>ID</ColumnName>
<ColumnName>SeqNumber</ColumnName>
- <ColumnName>ApiName</ColumnName>
+ <ColumnName>APIName</ColumnName>
<ColumnName>Time</ColumnName>
<ColumnName>Pid</ColumnName>
<TableColumnName>Row Id</TableColumnName>
<TableColumnName>ID</TableColumnName>
<TableColumnName>#</TableColumnName>
- <TableColumnName>Api name</TableColumnName>
+ <TableColumnName>API name</TableColumnName>
<TableColumnName>Time</TableColumnName>
<TableColumnName>Process id</TableColumnName>
<ColumnName>Rid</ColumnName>
<ColumnName>ID</ColumnName>
<ColumnName>SeqNumber</ColumnName>
- <ColumnName>ApiName</ColumnName>
+ <ColumnName>APIName</ColumnName>
<ColumnName>Time</ColumnName>
<ColumnName>Pid</ColumnName>
<TableColumnName>Row Id</TableColumnName>
<TableColumnName>ID</TableColumnName>
<TableColumnName>#</TableColumnName>
- <TableColumnName>Api name</TableColumnName>
+ <TableColumnName>API name</TableColumnName>
<TableColumnName>Time</TableColumnName>
<TableColumnName>Process id</TableColumnName>
input.get(LogCenterConstants.DEVICE_RSSI_ALPHA_INDEX),
input.get(LogCenterConstants.DEVICE_VOLTAGE_INDEX));
input.set(LogCenterConstants.DEVICE_ENERGY_INDEX, power.toString());
- } else if (id == LogCenterConstants.LOG_USER_FUNCTION) {
- // String apiName = input.get(LogCenterConstants.APINAME_INDEX);
- // if (apiName.isEmpty()) {
- // setFuncName(input);
- // }
- //
- // String start = input
- // .get(LogCenterConstants.USER_FUNCTION_BINARY_RANGE_START_INDEX);
- // String end = input
- // .get(LogCenterConstants.USER_FUNCTION_BINARY_RANGE_END_INDEX);
- // if (!start.isEmpty() && !end.isEmpty()
- // && !AnalyzerManager.isBinStartEndSet()) {
- // AnalyzerManager.setBinaryStartEndAddr(start, end);
- // }
}
logPack.setLogs(id, input);
}\r
\r
private void loadCallStackApis(Project p) {\r
- ResultSet rs = SqlManager.selectAllFromTable("CallStackApis");\r
+ ResultSet rs = SqlManager.selectAllFromTable("CallStackAPIs");\r
if (null == rs) {\r
return;\r
}\r
private static TableInfo profilingChildData = null;
public static final String[] commonColumns = { "Rid", "Id", "SeqNumber",
- "ApiNmae", "Time", "Pid", "Tid", "InputParm", "Return", "PCAddr",
+ "APINmae", "Time", "Pid", "Tid", "InputParm", "Return", "PCAddr",
"Error", "InternalCall", "Reserved1", "Reserved2", "Reserved3",
"Reserved4", "Reserved5", "Reserved6", "Reserved7", "Reserved8" };
public static final String[] commonOptions = { "", "", "", "", "", "", "",
String[] names = { "addr", "api" };
String[] options = { "primary key not null", "" };
String[] types = { "INTEGER", "TEXT" };
- callstackApis = new TableInfo("CallstackApis", names, options,
+ callstackApis = new TableInfo("CallstackAPIs", names, options,
types);
}
return callstackApis;
public static final String ID = FunctionUsageProfilingView.class.getName();
private DATableComposite treeComp = null;
- private String[] columnNames = {"Name", "excl. cpu time", "excl. cpu rate", "incl. cpu time", "incl. cpu rate", "call count"};
+ private String[] columnNames = {"Name", "Excl. Cpu Time", "Excl. Cpu Rate", "Incl. Cpu Time", "Incl. Cpu Rate", "Call Count"};
private int[] columnSizes = { 200, 90, 90, 90, 90, 90 };
private boolean[] columnVisibility = { true, true, true, true, true, true };
import org.tizen.dynamicanalyzer.model.LeakCheckList;
import org.tizen.dynamicanalyzer.model.LeakData;
-
public class LeakDetector {
public final static int API_TYPE_OPEN = 0;
public final static int API_TYPE_CLOSE = 1;
public final static int API_TYPE_REALLOC = 2;
-// public final static String USER_BIN_POS = "/opt/apps/";
private final String[] columnNames = { "Addr", "Seq", "Id", "Time",
- "ApiName", "InputParam", "Return", "LeakSeq", "Parent" };
+ "APIName", "InputParam", "Return", "LeakSeq", "Parent" };
HashMap<String, Check> leakCheckHash;
HashMap<String, LeakData> leakHash;
public LeakDetector() {
LeakCheckList leakCheckList = AnalyzerManager.getLeakCheckList();
- leakCheckHash = new HashMap<String, Check>();
+ if (leakCheckList != null) {
+ leakCheckHash = new HashMap<String, Check>();
- List<Check> checks = leakCheckList.getChecks();
- int size = checks.size();
- for (int i = 0; i < size; i++) {
- leakCheckHash.put(checks.get(i).getName(), checks.get(i));
+ List<Check> checks = leakCheckList.getChecks();
+ int size = checks.size();
+ for (int i = 0; i < size; i++) {
+ leakCheckHash.put(checks.get(i).getName(), checks.get(i));
+ }
}
}
String funcName = apiMap.get(addrs.get(0));
// user call
-// if (funcName.contains(AnalyzerConstants.USER_BIN_POS)) {
- if (LogSpliter.checkUserCall(funcName))
- {
+ // if (funcName.contains(AnalyzerConstants.USER_BIN_POS)) {
+ if (LogSpliter.checkUserCall(funcName)) {
// if (!AnalyzerUtil.isInternal(input)) {
HashMap<String, LeakData> leaks = getLeakHash();
LeakData newLeak = new LeakData(input[chk.getKeyIndex()], input);
if (funcName.contains("__dlog_print")) {
return;
}
-// if (funcName.contains(AnalyzerConstants.USER_BIN_POS)) {
- if (LogSpliter.checkUserCall(funcName))
- {
+ // if (funcName.contains(AnalyzerConstants.USER_BIN_POS)) {
+ if (LogSpliter.checkUserCall(funcName)) {
LeakData childData = new LeakData(input[chk.getKeyIndex()],
input);
String addr = Long.toString(addrs.get(i - 1));