Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sasa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
verimag
synchrone
sasa
Commits
00fd74db
Commit
00fd74db
authored
2 years ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
fix: various fixes and improvements in rdbgui4sasa
parent
b790ebab
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/dijkstra-ring/my-rdbg-tuning.ml
+0
-5
0 additions, 5 deletions
test/dijkstra-ring/my-rdbg-tuning.ml
tools/rdbg4sasa/gtkgui.ml
+392
-310
392 additions, 310 deletions
tools/rdbg4sasa/gtkgui.ml
tools/rdbg4sasa/sasa-rdbg-cmds.ml
+20
-9
20 additions, 9 deletions
tools/rdbg4sasa/sasa-rdbg-cmds.ml
with
412 additions
and
324 deletions
test/dijkstra-ring/my-rdbg-tuning.ml
deleted
100644 → 0
+
0
−
5
View file @
b790ebab
(* *)
#
use
"rdbg-cmds.ml"
;;
#
use
"sasa-rdbg-cmds.ml"
;;
This diff is collapsed.
Click to expand it.
tools/rdbg4sasa/gtkgui.ml
+
392
−
310
View file @
00fd74db
This diff is collapsed.
Click to expand it.
tools/rdbg4sasa/sasa-rdbg-cmds.ml
+
20
−
9
View file @
00fd74db
...
...
@@ -50,7 +50,14 @@ let enabled pl = (* returns the enabled processes *)
(* called at each event via the time-travel hook *)
let
(
round
:
RdbgEvent
.
t
->
bool
)
=
fun
e
->
if
e
.
kind
=
Exit
&&
e
.
name
=
"sasa"
then
get_round
e
else
false
let
get_it
=
if
args
.
salut_mode
then
e
.
kind
=
Call
&&
e
.
name
=
"mv_hook"
else
true
(* e.kind=Exit && e.name = "sasa" *)
in
if
get_it
then
get_round
e
else
false
(**********************************************************************)
let
d_par
()
=
dot
true
(
get_round_nb
!
e
)
p
dotfile
!
e
;;
...
...
@@ -145,12 +152,15 @@ It is the case for sasa and lutin at least.
let
(
string_to_string_list
:
string
->
string
list
)
=
fun
str
->
Str
.
split
(
Str
.
regexp
"[
\t
]+"
)
str
Str
.
split
(
Str
.
regexp
"[
\t
]+"
)
str
let
(
change_ocaml_plugin_seed
:
int
->
RdbgPlugin
.
t
->
RdbgPlugin
.
t
)
=
fun
seed
rdbgplugin
->
let
new_sasa_call
=
Printf
.
sprintf
"%s --seed %d"
rdbgplugin
.
id
seed
in
Sasa
.
SasaRun
.
make
(
Array
.
of_list
(
string_to_string_list
new_sasa_call
))
fun
seed
rdbgplugin
->
if
args
.
salut_mode
then
((
*
nothing
to
do
here
*
)
rdbgplugin
)
else
let
new_sasa_call
=
Printf
.
sprintf
"%s --seed %d"
rdbgplugin
.
id
seed
in
Printf
.
printf
"%s
\n
%!"
new_sasa_call
;
Sasa
.
SasaRun
.
make
(
Array
.
of_list
(
string_to_string_list
new_sasa_call
))
let
(
change_plugin_seed
:
int
->
RdbgArg
.
reactive_program
->
RdbgArg
.
reactive_program
)
=
fun
seed
plugin
->
...
...
@@ -318,11 +328,12 @@ let _ = add_doc_entry
"potential"
"unit -> float option"
"returns the current potential if available"
"sasa"
"sasa-rdbg-cmds.ml"
(**********************************************************************)
(* Perform the checkpointing at rounds! *)
let
_
=
check_ref
:=
fun
e
->
e
.
nb
=
1
||
round
e
;;
(* overide the default checkpointing at rounds
nb : this is overridden in gtkgui.ml
*)
let
_
=
check_ref
:=
fun
e
->
e
.
nb
=
1
||
(
e
.
kind
=
Exit
&&
e
.
name
=
"sasa"
&&
round
e
);;
(**********************************************************************)
let
_
=
...
...
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