private void logSlicing(List<LogData> logLumb) {
int size = logLumb.size();
LogPackage logPack = new LogPackage();
- // System.out.println(" log lumb size " + size);
for (int i = 0; i < size; i++) {
if (null == logLumb.get(i)) {
continue;
if (id != DataChannelConstants.MSG_DATA_SAMPLE) {
ProfileData pData = (ProfileData) log;
long pcAddr = pData.getPcAddr();
-
+
String apiName = pData.getApiName();
if (null == apiName || apiName.isEmpty()
|| apiName.equals("_end")) { //$NON-NLS-1$
apiName = AnalyzerUtil.getFuncName(pData);
- if (apiName == null || apiName.equals("<unknown function>")) {
+ if (apiName == null
+ || apiName.equals("<unknown function>")) {
// necessary? pData.setApiName(apiName);
continue;
} else {
pData.setApiName(apiName);
}
}
-
- // System.out.println("api name : " + apiName + " time : " + pData.getTime());
+
if (isDropCallTraceLog()) {
apiName = pData.getApiName();
if (apiName.contains(OSP_MAIN)) {
continue;
}
}
+
// irregular call check still necessary?
if (AnalyzerManager.getCallstackManager()
.isIrregularUserCall(pData)) {
// + " base addr : "
// + AnalyzerUtil.toHexdecimal(processInfo
// .getLowestAddress()));
-
+
pushLog(log, logPack);
-
if (pcAddr >= processInfo.getLowestAddress()
&& pcAddr <= processInfo.getHighestAddress()) {
/* user callstack create by entry and exit */
AnalyzerManager.getCallstackManager()
- .makeUserCallstack(pData,
+ .makeUserCallstack(
+ pData,
FunctionUsageProfiler.getInstance()
- .getProfileDataMakerByPid(pData.getPid()));
+ .getProfileDataMakerByPid(
+ pData.getPid()));
} else {
AnalyzerManager.getCallstackManager()
.makeCallstackWithoutBacktrace(pData);
if (log instanceof ScreenShotData) {
boolean bECS = false;
String remoteImgPath;
- if(DACommunicator.isTargetEmulator()
+ if (DACommunicator.isTargetEmulator()
&& SocketClient.getInstance().isConnected()) {
- DACommunicator.getSelectedDevice().emulatorSnapshot.send();
- remoteImgPath = DACommunicator.getSelectedDevice()
- .emulatorSnapshot.getFilePath();
+ DACommunicator.getSelectedDevice().emulatorSnapshot
+ .send();
+ remoteImgPath = DACommunicator.getSelectedDevice().emulatorSnapshot
+ .getFilePath();
bECS = true;
} else {
remoteImgPath = ((ScreenShotData) log)
- .getImageFilePath();
+ .getImageFilePath();
}
int rotate = ((ScreenShotData) log).getOrientation();
// TODO : fix
- if(bECS) {
+ if (bECS) {
processImagefromECS(remoteImgPath, rotate);
} else {
processImage(remoteImgPath, rotate);
}, AnalyzerConstants.MESSAGE_INTERNAL_IMAGE_THREAD).start();
}
-
+
private String getImageName(String fullPath) {
String name = null;
name = fullPath