System.out.println("failed - loadProfilingData");\r
isSuccess = false;\r
} else {\r
-\r
+ int sampleCount = 0;\r
ProfileDataMaker profiler = FunctionUsageProfiler.getInstance()\r
.getProfileDataMaker();\r
for (int i = 0; i < dbInfo.size(); i++) {\r
profiler.getSymbolSeqHash().put(symbol, seq);\r
UIDataManager.getInstance().getfunctionProfilingDataChecker()\r
.addProfilingData(fupData);\r
+ sampleCount += fupData.getExCount();\r
}\r
\r
ProfilingData ab = profiler\r
.getProfilingDataByKey(FunctionUsageProfiler.DEPENDENT_LIB_KEY);\r
profiler.setDependentLib(dl);\r
\r
+ // restore total sample count \r
+ profiler.setTotalSampleCount(sampleCount);\r
}\r
return isSuccess;\r
}\r
count = data.getExCount();
if(totalSampleCount == 0) {
rate = 0;
- }
- rate = count / (double) totalSampleCount * 100;
+ } else {
+ rate = count / (double) totalSampleCount * 100;
+ }
} else {
count = data.getInCount();
if(totalSampleCount == 0) {
rate = 0;
- }
- rate = count / (double) totalSampleCount * 100;
+ } else {
+ rate = count / (double) totalSampleCount * 100;
+ }
}
return Formatter.toDoubleFormat2(Double.toString(rate));