Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ranadeep Biswas
dbcop
Commits
488e0264
Commit
488e0264
authored
Jan 15, 2020
by
Ranadeep Biswas
Browse files
Print durations
parent
7d60ded3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/verifier/mod.rs
View file @
488e0264
...
...
@@ -525,6 +525,7 @@ impl Verifier {
ser_hist
.history
.vis_includes
(
&
wr
);
let
mut
change
=
false
;
// wsc code
let
mut
now
=
std
::
time
::
Instant
::
now
();
println!
(
"wsc start"
);
loop
{
change
|
=
ser_hist
.history
.vis_is_trans
();
...
...
@@ -543,6 +544,7 @@ impl Verifier {
}
}
println!
(
"wsc end"
);
println!
(
"wsc took {}secs"
,
now
.elapsed
()
.as_secs
());
if
ser_hist
.history.vis
.has_cycle
()
{
Some
(
self
.consistency_model
)
...
...
@@ -574,7 +576,9 @@ impl Verifier {
// }
// lin_o.is_some();
now
=
std
::
time
::
Instant
::
now
();
if
ser_hist
.get_linearization
()
.is_some
()
{
println!
(
"dbcop main algorithm took {}secs"
,
now
.elapsed
()
.as_secs
());
None
}
else
{
Some
(
self
.consistency_model
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment