++
метрику в json
This commit is contained in:
@@ -3,7 +3,7 @@ import Common.Utils.Vector_;
|
||||
|
||||
import java.util.Vector;
|
||||
public class Constants {
|
||||
public static final int version = 1242;
|
||||
public static final int version = 1243;
|
||||
public static final int planner_version = 24;
|
||||
public static final int testingMaxKernels = 64;
|
||||
//--
|
||||
|
||||
@@ -23,25 +23,6 @@ public class SPF_GetFileLineInfo extends SapforAnalysis {
|
||||
}
|
||||
@Override
|
||||
protected void unpack(String packed) throws Exception {
|
||||
|
||||
//----------------------------------------
|
||||
String[] data_ = packed.split("@");
|
||||
DBProjectFile file_ = null;
|
||||
for (int i = 0; i < data_.length; ++i) {
|
||||
String s = data_[i];
|
||||
if (i % 2 == 0) {
|
||||
file_ = target.db.files.Data.get(Utils_.toW(s));
|
||||
} else {
|
||||
String[] local = s.split("_");
|
||||
int num = Integer.parseInt(local[0]);
|
||||
target.numSPF += Integer.parseInt(local[1]);
|
||||
target.numDVM += Integer.parseInt(local[2]);
|
||||
if (file_ != null)
|
||||
file_.lines_count = num;
|
||||
target.numLines += num;
|
||||
}
|
||||
}
|
||||
/*
|
||||
MetricsJson metricsJson = Utils_.gson.fromJson(packed, MetricsJson.class);
|
||||
for (FileMetrics fileMetrics : metricsJson.allMetrics) {
|
||||
fileMetrics.file = Utils_.toW(fileMetrics.file);
|
||||
@@ -57,7 +38,6 @@ public class SPF_GetFileLineInfo extends SapforAnalysis {
|
||||
target.UpdateDVMCount();
|
||||
target.UpdateSPFCount();
|
||||
target.UpdateLinesCount();
|
||||
*/
|
||||
}
|
||||
@Override
|
||||
protected void showDone() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user