Hey all,
I'm trying to find a way to measure CPU usage and other measurements in some operation or flowgraph (the actual processes don't matter) and compare it to the same operation done after using RFNoC to shift the operations to a USRP. It seems like gr-perf-monitorx would be perfect.
Unfortunately, every time I run the script, one of two ImportErrors occurs. The first involved PyQt4 and Qwt5 (fixed by installing from source). The next is this:
Traceback (most recent call last):
File "/home/rich/Desktop/repos2/target/bin/gr-perf-monitorx", line 54, in <module>
from gnuradio.ctrlport.GrDataPlotter import *
File "/home/rich/Desktop/repos2/target/lib/python2.7/dist-packages/gnuradio/ctrlport/GrDataPlotter.py", line 26, in <module>
from gnuradio.ctrlport.GNURadio import ControlPort
File "/home/rich/Desktop/repos2/target/lib/python2.7/dist-packages/gnuradio/ctrlport/GNURadio/ControlPort.py", line 11, in <module>
from .ttypes import *
File "/home/rich/Desktop/repos2/target/lib/python2.7/dist-packages/gnuradio/ctrlport/GNURadio/ttypes.py", line 9, in <module>
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
ImportError: cannot import name TFrozenDict
I've installed thrift 0.9.3 (because 0.9.2 is required for gr-perf-monitorx) and then reinstallled GNURadio using pybombs (by updating apache-thrift) to check if that resolved anything; I've also uninstalled and reinstalled thrift using pip (which shows version 0.9.3). Running "gnuradio-config-info --enabled-components" I can see "* thrift" on the list, so I know that GNU Radio has found it. Nothing changed.