исправлен баг с переводом на json, не изменялись в формат виндовс имена файлов при распаковке регионов

This commit is contained in:
2025-09-18 20:28:59 +03:00
parent 1329bb3038
commit bedb5eefd1
4 changed files with 4 additions and 6 deletions

View File

@@ -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());