Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
90e84c01
Commit
90e84c01
authored
Nov 04, 2021
by
hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test : add some rt stats to the monitor (graph)
parent
9374eda0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
ci-scripts/stats_monitor.py
ci-scripts/stats_monitor.py
+10
-2
ci-scripts/stats_monitor_conf.yaml
ci-scripts/stats_monitor_conf.yaml
+4
-1
No files found.
ci-scripts/stats_monitor.py
View file @
90e84c01
...
@@ -35,7 +35,15 @@ class StatMonitor():
...
@@ -35,7 +35,15 @@ class StatMonitor():
self
.
d
[
node_type
][
'ulsch_err'
].
append
(
int
(
result
.
group
(
3
)))
self
.
d
[
node_type
][
'ulsch_err'
].
append
(
int
(
result
.
group
(
3
)))
percentage
=
float
(
result
.
group
(
2
))
/
float
(
result
.
group
(
1
))
percentage
=
float
(
result
.
group
(
2
))
/
float
(
result
.
group
(
1
))
self
.
d
[
node_type
][
'ulsch_err_perc_round_1'
].
append
(
percentage
)
self
.
d
[
node_type
][
'ulsch_err_perc_round_1'
].
append
(
percentage
)
result
=
re
.
match
(
r'^.*\bL1 Tx processing thread 0\b:\s+([0-9\.]+) us;\s+([0-9]+);\s+([0-9\.]+) us;'
,
tmp
)
if
result
is
not
None
:
self
.
d
[
node_type
][
'L1 Tx processing thread 0'
].
append
(
float
(
result
.
group
(
3
)))
result
=
re
.
match
(
r'^.*\bL1 Tx processing thread 1\b:\s+([0-9\.]+) us;\s+([0-9]+);\s+([0-9\.]+) us;'
,
tmp
)
if
result
is
not
None
:
self
.
d
[
node_type
][
'L1 Tx processing thread 1'
].
append
(
float
(
result
.
group
(
3
)))
result
=
re
.
match
(
r'^.*\bDLSCH encoding\b:\s+([0-9\.]+) us;\s+([0-9]+);\s+([0-9\.]+) us;'
,
tmp
)
if
result
is
not
None
:
self
.
d
[
node_type
][
'DLSCH encoding'
].
append
(
float
(
result
.
group
(
3
)))
def
process_enb
(
self
,
node_type
,
output
):
def
process_enb
(
self
,
node_type
,
output
):
for
line
in
output
:
for
line
in
output
:
...
@@ -88,7 +96,7 @@ if __name__ == "__main__":
...
@@ -88,7 +96,7 @@ if __name__ == "__main__":
mon
=
StatMonitor
(
cfg_filename
)
mon
=
StatMonitor
(
cfg_filename
)
#collecting stats when modem process is stopped
#collecting stats when modem process is stopped
CMD
=
'ps aux | grep mode | grep -v grep'
CMD
=
'ps aux | grep mode
m
| grep -v grep'
process
=
subprocess
.
Popen
(
CMD
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
)
process
=
subprocess
.
Popen
(
CMD
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
)
output
=
process
.
stdout
.
readlines
()
output
=
process
.
stdout
.
readlines
()
while
len
(
output
)
!=
0
:
while
len
(
output
)
!=
0
:
...
...
ci-scripts/stats_monitor_conf.yaml
View file @
90e84c01
...
@@ -9,3 +9,6 @@ gnb :
...
@@ -9,3 +9,6 @@ gnb :
dlsch_err_perc_round_1
:
dlsch_err_perc_round_1
:
ulsch_err
:
ulsch_err
:
ulsch_err_perc_round_1
:
ulsch_err_perc_round_1
:
L1 Tx processing thread 0
:
L1 Tx processing thread 1
:
DLSCH encoding
:
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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