Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Camille
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
general
stups
Camille
Commits
add3ed8e
Commit
add3ed8e
authored
Dec 6, 2023
by
dgelessus
Browse files
Options
Downloads
Patches
Plain Diff
Update mergeComponents debugging time prints
parent
e8767e82
No related branches found
No related tags found
No related merge requests found
Pipeline
#126118
passed
Dec 6, 2023
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
org.eventb.texttools/src/org/eventb/texttools/PersistenceHelper.java
+10
-7
10 additions, 7 deletions
...texttools/src/org/eventb/texttools/PersistenceHelper.java
with
10 additions
and
7 deletions
org.eventb.texttools/src/org/eventb/texttools/PersistenceHelper.java
+
10
−
7
View file @
add3ed8e
...
@@ -176,7 +176,7 @@ public class PersistenceHelper {
...
@@ -176,7 +176,7 @@ public class PersistenceHelper {
final
EventBNamedCommentedComponentElement
oldVersion
,
final
EventBNamedCommentedComponentElement
oldVersion
,
final
EventBNamedCommentedComponentElement
newVersion
,
final
EventBNamedCommentedComponentElement
newVersion
,
final
IProgressMonitor
monitor
)
{
final
IProgressMonitor
monitor
)
{
long
time
0
=
System
.
currentTimeMillis
();
long
time
Start
=
System
.
currentTimeMillis
();
IComparisonFactory
comparisonFactory
=
new
DefaultComparisonFactory
(
IComparisonFactory
comparisonFactory
=
new
DefaultComparisonFactory
(
new
DefaultEqualityHelperFactory
());
new
DefaultEqualityHelperFactory
());
...
@@ -199,14 +199,18 @@ public class PersistenceHelper {
...
@@ -199,14 +199,18 @@ public class PersistenceHelper {
IComparisonScope
scope
=
new
DefaultComparisonScope
(
oldVersion
,
IComparisonScope
scope
=
new
DefaultComparisonScope
(
oldVersion
,
newVersion
,
null
);
newVersion
,
null
);
long
timeSetup
=
System
.
currentTimeMillis
();
if
(
DEBUG
)
{
System
.
out
.
println
(
"Setting up comparator took "
+
(
timeSetup
-
timeStart
)
+
" ms"
);
}
Comparison
comparison
=
comparator
.
compare
(
scope
);
Comparison
comparison
=
comparator
.
compare
(
scope
);
List
<
Diff
>
differences
=
comparison
.
getDifferences
();
List
<
Diff
>
differences
=
comparison
.
getDifferences
();
long
time1
=
System
.
currentTimeMillis
();
long
timeCompare
=
System
.
currentTimeMillis
();
if
(
DEBUG
)
{
if
(
DEBUG
)
{
System
.
out
.
println
(
"
new ModelMerge: "
+
(
time1
-
time0
)
);
System
.
out
.
println
(
"
Comparing took "
+
(
timeCompare
-
timeSetup
)
+
" ms"
);
}
}
Registry
registry
=
RegistryImpl
.
createStandaloneInstance
();
Registry
registry
=
RegistryImpl
.
createStandaloneInstance
();
...
@@ -220,10 +224,9 @@ public class PersistenceHelper {
...
@@ -220,10 +224,9 @@ public class PersistenceHelper {
for
(
Diff
d:
differences
)
applyDiff
(
oldVersion
,
evbMerger
,
d
);
for
(
Diff
d:
differences
)
applyDiff
(
oldVersion
,
evbMerger
,
d
);
long
time2
=
System
.
currentTimeMillis
();
long
timeApply
=
System
.
currentTimeMillis
();
if
(
DEBUG
)
{
if
(
DEBUG
)
{
System
.
out
.
println
(
"
m
erg
e.applyC
hanges
:
"
+
(
time
2
-
time
1
)
);
System
.
out
.
println
(
"
M
erg
ing c
hanges
took
"
+
(
time
Apply
-
time
Compare
)
+
" ms"
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment