исправлен баг с переводом на json, не изменялись в формат виндовс имена файлов при распаковке регионов
This commit is contained in:
@@ -504,10 +504,8 @@ public abstract class Sapfor extends OSDComponent {
|
||||
}
|
||||
public void decodeString(String runResult) throws Exception {
|
||||
System.out.println("String="+runResult);
|
||||
|
||||
SapforResult_json resultJson = Utils_.gson.fromJson(runResult, SapforResult_json.class);
|
||||
resultJson.Print();
|
||||
UI.Info("+");
|
||||
//---
|
||||
setErrorCode(resultJson.errorCode);
|
||||
setOutput(resultJson.output);
|
||||
|
||||
@@ -2,6 +2,7 @@ package _VisualDVM.ProjectData.SapforData.Regions;
|
||||
import Common.Database.Objects.DBObject;
|
||||
import Common.Utils.IntegerPairJson;
|
||||
import Common.Utils.Pair;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.ProjectData.Files.DBProjectFile;
|
||||
import _VisualDVM.ProjectData.SapforData.Arrays.AlignRule;
|
||||
@@ -85,6 +86,7 @@ public class ParallelRegion extends DBObject {
|
||||
}
|
||||
//---
|
||||
for (FileRegionLinesJson fr : regionsLines) {
|
||||
fr.file = Utils_.toW(fr.file);
|
||||
lines.put(fr.file, fr.lines);
|
||||
for (IntegerPairJson l : fr.lines) {
|
||||
fragments.add(fr.file + ": " + l.getKey() + "-" + l.getKey());
|
||||
@@ -100,6 +102,7 @@ public class ParallelRegion extends DBObject {
|
||||
for (IntegerPairJson L : lines.get(FKey)) {
|
||||
lines_count += (L.getValue() - L.getKey());
|
||||
DBProjectFile f = Global.mainModule.getProject().db.files.Data.get(FKey);
|
||||
|
||||
loops_count += f.FragmentLoopCount(L.getKey(), L.getValue());
|
||||
fc_count += f.FragmentFunctionCallsCount(L.getKey(), L.getValue());
|
||||
fd_count += f.FragmentFunctionDeclsCount(L.getKey(), L.getValue());
|
||||
|
||||
Reference in New Issue
Block a user