Commit 90e84c01 authored by hardy's avatar hardy

test : add some rt stats to the monitor (graph)

parent 9374eda0
......@@ -35,7 +35,15 @@ class StatMonitor():
self.d[node_type]['ulsch_err'].append(int(result.group(3)))
percentage=float(result.group(2))/float(result.group(1))
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):
for line in output:
......@@ -88,7 +96,7 @@ if __name__ == "__main__":
mon=StatMonitor(cfg_filename)
#collecting stats when modem process is stopped
CMD='ps aux | grep mode | grep -v grep'
CMD='ps aux | grep modem | grep -v grep'
process=subprocess.Popen(CMD, shell=True, stdout=subprocess.PIPE)
output = process.stdout.readlines()
while len(output)!=0 :
......
......@@ -9,3 +9,6 @@ gnb :
dlsch_err_perc_round_1:
ulsch_err:
ulsch_err_perc_round_1:
L1 Tx processing thread 0:
L1 Tx processing thread 1:
DLSCH encoding:
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment