Beautify the output of tegrastats on TX2
Catch the tegrastats' output through pipe. Then transform the string into various data.
ONLY tx2Status_ver2.c is usable.
gcc tx2_status.c -o tx2status
sudo ./tx2status
gcc manifold_status.c -o manifoldstatus
sudo ./manifoldStatus
Be aware that this code base on the command "tegrastats", which Manifold 2 is not contained. You should copy one to the directory /usr/bin before your execution.
Besides, the Manifold 2-G version of "tegrastats" doesn't show the cache status. I make the same change in manifold_status.c .