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
f337ce26
Commit
f337ce26
authored
Nov 06, 2018
by
Simon Spannagel
Browse files
Printout improvements in ModuleManager
parent
5c47b00f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/module/ModuleManager.cpp
View file @
f337ce26
...
...
@@ -552,9 +552,10 @@ void ModuleManager::run() {
Tracks
*
tracks
=
reinterpret_cast
<
Tracks
*>
(
m_clipboard
->
get
(
"tracks"
));
m_tracks
+=
(
tracks
==
nullptr
?
0
:
static_cast
<
int
>
(
tracks
->
size
()));
if
(
m_events
%
1000
)
{
if
(
m_events
%
100
==
0
)
{
LOG_PROGRESS
(
STATUS
,
"event_loop"
)
<<
"Ev: "
<<
m_events
<<
" Tr: "
<<
m_tracks
<<
" ("
<<
std
::
setprecision
(
3
)
<<
"Ev: "
<<
std
::
fixed
<<
std
::
setprecision
(
1
)
<<
0.001
*
m_events
<<
"k Tr: "
<<
std
::
fixed
<<
std
::
setprecision
(
1
)
<<
0.001
*
m_tracks
<<
"k ("
<<
std
::
setprecision
(
3
)
<<
(
static_cast
<
double
>
(
m_tracks
)
/
m_events
)
<<
"/ev)"
<<
(
m_clipboard
->
has_persistent
(
"eventStart"
)
?
" t = "
+
Units
::
display
(
m_clipboard
->
get_persistent
(
"eventStart"
),
{
"ns"
,
"us"
,
"ms"
,
"s"
})
...
...
@@ -697,10 +698,10 @@ void ModuleManager::timing() {
LOG
(
STATUS
)
<<
"===============| Wall-clock timing (seconds) |================"
;
for
(
auto
&
module
:
m_modules
)
{
auto
identifier
=
module
->
get_identifier
().
getIdentifier
();
LOG
(
STATUS
)
<<
std
::
setw
(
2
5
)
<<
module
->
getConfig
().
getName
()
<<
(
identifier
.
empty
()
?
" "
:
" : "
)
LOG
(
STATUS
)
<<
std
::
setw
(
2
0
)
<<
module
->
getConfig
().
getName
()
<<
(
identifier
.
empty
()
?
" "
:
" : "
)
<<
std
::
setw
(
10
)
<<
identifier
<<
" -- "
<<
std
::
fixed
<<
std
::
setprecision
(
5
)
<<
module_execution_time_
[
module
]
<<
" = "
<<
std
::
setprecision
(
9
)
<<
module_execution_time_
[
module
]
/
m_events
<<
"
s/evt"
;
<<
module_execution_time_
[
module
]
<<
"
s
= "
<<
std
::
setprecision
(
6
)
<<
1000
*
module_execution_time_
[
module
]
/
m_events
<<
"
m
s/evt"
;
}
LOG
(
STATUS
)
<<
"=============================================================="
;
}
...
...
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