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
d77705b9
Commit
d77705b9
authored
2 years ago
by
Valentin Perrelle
Committed by
David Bühler
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Eva] Do not export statistics if not required
parent
9e97fdd6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/eva/utils/statistics.ml
+11
-4
11 additions, 4 deletions
src/plugins/eva/utils/statistics.ml
with
11 additions
and
4 deletions
src/plugins/eva/utils/statistics.ml
+
11
−
4
View file @
d77705b9
...
...
@@ -178,8 +178,15 @@ let export_as_csv_to_channel out_channel =
in
List
.
iter
(
pp_stat
fmt
)
l
let
export_as_csv
?
filename
()
=
let
default
=
Parameters
.
StatisticsFile
.
get
()
in
let
filename
=
Option
.
value
~
default
filename
in
let
out_channel
=
open_out
(
filename
:>
string
)
in
let
export_as_csv_to_file
filename
=
let
out_channel
=
open_out
(
filename
:
Filepath
.
Normalized
.
t
:>
string
)
in
export_as_csv_to_channel
out_channel
let
export_as_csv
?
filename
()
=
match
filename
with
|
None
->
if
not
(
Parameters
.
StatisticsFile
.
is_empty
()
)
then
let
filename
=
Parameters
.
StatisticsFile
.
get
()
in
export_as_csv_to_file
filename
|
Some
filename
->
export_as_csv_to_file
filename
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