From 2ba97c8d6d1e6bb322446773e42cbdac347c0085 Mon Sep 17 00:00:00 2001 From: Bastian Bloessl Date: Thu, 20 Apr 2017 16:46:46 +0200 Subject: [PATCH] perf-monitor: print load avg --- utils/gr-perf-to-csv | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/gr-perf-to-csv b/utils/gr-perf-to-csv index 72bd9ab..ef525fe 100755 --- a/utils/gr-perf-to-csv +++ b/utils/gr-perf-to-csv @@ -20,6 +20,7 @@ import sys, time from gnuradio import gr, ctrlport +from subprocess import Popen, PIPE class MyApp(object): def __init__(self, args): @@ -63,7 +64,7 @@ class MyApp(object): client.setKnobs(knobs) # let the flow graph run for some time - time.sleep(30) + time.sleep(60) ## get work time for all blocks kl = map(lambda x: "%s::total work time" % x, blocks) @@ -75,4 +76,7 @@ class MyApp(object): print(",".join(map(lambda x: str(x[1]), sorted(work_times.items())))) + p = Popen("uptime", stdout=PIPE, close_fds=True, shell=True) + print(p.stdout.read()) + MyApp(sys.argv)