Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
acd0a47c
Commit
acd0a47c
authored
Oct 09, 2017
by
Simon Spannagel
Browse files
Update timing output, move up to STATUS level
parent
cca57277
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/Analysis.C
View file @
acd0a47c
...
...
@@ -8,6 +8,7 @@
#include
"utils/log.h"
#include
<dlfcn.h>
#include
<iomanip>
#include
<fstream>
#define CORRYVRECKAN_ALGORITHM_PREFIX "libCorryvreckanAlgorithm"
...
...
@@ -415,13 +416,13 @@ void Analysis::finaliseAll() {
// Display timing statistics for each algorithm, over all events and per event
void
Analysis
::
timing
()
{
LOG
(
INFO
)
<<
"===============| Wall-clock timing (seconds) |================"
;
LOG
(
STATUS
)
<<
"===============| Wall-clock timing (seconds) |================"
;
for
(
auto
&
algorithm
:
m_algorithms
)
{
LOG
(
INFO
)
<<
algorithm
->
getName
()
<<
" -- "
<<
algorithm
->
getStopwatch
()
->
RealTime
()
<<
" = "
<<
algorithm
->
getStopwatch
()
->
RealTime
()
/
m_events
<<
" s/evt"
;
LOG
(
STATUS
)
<<
std
::
setw
(
25
)
<<
algorithm
->
getName
()
<<
" -- "
<<
std
::
fixed
<<
std
::
setprecision
(
5
)
<<
algorithm
->
getStopwatch
()
->
RealTime
()
<<
" = "
<<
std
::
setprecision
(
9
)
<<
algorithm
->
getStopwatch
()
->
RealTime
()
/
m_events
<<
" s/evt"
;
}
LOG
(
INFO
)
<<
"=============================================================="
;
LOG
(
STATUS
)
<<
"=============================================================="
;
}
// Helper functions to set the module specific log settings if necessary
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment