Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
pub
frama-c
Commits
c9ca4363
Commit
c9ca4363
authored
2 years ago
by
Valentin Perrelle
Committed by
David Bühler
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] statistics: reset statistics at the start of each analysis
parent
ae81c18f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/plugins/eva/engine/analysis.ml
+1
-0
1 addition, 0 deletions
src/plugins/eva/engine/analysis.ml
src/plugins/eva/utils/statistics.ml
+3
-0
3 additions, 0 deletions
src/plugins/eva/utils/statistics.ml
src/plugins/eva/utils/statistics.mli
+3
-0
3 additions, 0 deletions
src/plugins/eva/utils/statistics.mli
with
7 additions
and
0 deletions
src/plugins/eva/engine/analysis.ml
+
1
−
0
View file @
c9ca4363
...
@@ -214,6 +214,7 @@ let force_compute () =
...
@@ -214,6 +214,7 @@ let force_compute () =
Eva_audit
.
check_configuration
(
Kernel
.
AuditCheck
.
get
()
);
Eva_audit
.
check_configuration
(
Kernel
.
AuditCheck
.
get
()
);
let
kf
,
lib_entry
=
Globals
.
entry_point
()
in
let
kf
,
lib_entry
=
Globals
.
entry_point
()
in
reset_analyzer
()
;
reset_analyzer
()
;
Statistics
.
reset_all
()
;
(* The new analyzer can be accesed through hooks *)
(* The new analyzer can be accesed through hooks *)
Self
.
set_computation_state
Computing
;
Self
.
set_computation_state
Computing
;
let
module
Analyzer
=
(
val
snd
!
ref_analyzer
)
in
let
module
Analyzer
=
(
val
snd
!
ref_analyzer
)
in
...
...
This diff is collapsed.
Click to expand it.
src/plugins/eva/utils/statistics.ml
+
3
−
0
View file @
c9ca4363
...
@@ -161,6 +161,9 @@ let incr (type a) (stat : a t) (x : a) =
...
@@ -161,6 +161,9 @@ let incr (type a) (stat : a t) (x : a) =
let
grow
(
type
a
)
(
stat
:
a
t
)
(
x
:
a
)
value
=
let
grow
(
type
a
)
(
stat
:
a
t
)
(
x
:
a
)
value
=
update
stat
x
(
fun
v
->
max
v
value
)
update
stat
x
(
fun
v
->
max
v
value
)
let
reset_all
()
=
State
.
clear
()
(* -- Export --- *)
(* -- Export --- *)
...
...
This diff is collapsed.
Click to expand it.
src/plugins/eva/utils/statistics.mli
+
3
−
0
View file @
c9ca4363
...
@@ -36,5 +36,8 @@ val incr : 'a t -> 'a -> unit
...
@@ -36,5 +36,8 @@ val incr : 'a t -> 'a -> unit
(* Set the stat to the maximum between the current value and the given value *)
(* Set the stat to the maximum between the current value and the given value *)
val
grow
:
'
a
t
->
'
a
->
int
->
unit
val
grow
:
'
a
t
->
'
a
->
int
->
unit
(* Reset all statistics to zero *)
val
reset_all
:
unit
->
unit
(* Export the computed statistics as CSV *)
(* Export the computed statistics as CSV *)
val
export_as_csv
:
?
filename
:
Filepath
.
Normalized
.
t
->
unit
->
unit
val
export_as_csv
:
?
filename
:
Filepath
.
Normalized
.
t
->
unit
->
unit
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