In Tegra(TK1 and TX1) processor, there is one command command called “tegrastats” which is used to monitor the CPU and GPU utilisation of the android devices like Shield Tablet K1. To use this command, connect the device via ADB shell. Now use the below command to log the details to logcat.
$ tegrastats [delay in ms]
The above command outputs a line per second to adb logcat with below information.
- RAM - RAM details
- CPU - CPU usage percentage with processor running freqency.
- EMC – memory controller bus %@MHz
- AVP – audio/video processor %@MHz
- VDE – video decoder engine %@MHz
- GR3D – GPU %@MHz
- EDP -Electrical Design Power
Below is the example of this command.
$ tegrastats 500 | logcat | grep -i cpu
Below is the sample output of above command.
E/TegraStats( 1415): RAM 475/1739MB (lfb 213x4MB) cpu [11%,0%,3%,off]@1530 EMC 11%@300 AVP 0%@204 VDE 120 GR3D 0%@72 EDP limit 0
E/TegraStats( 1415): RAM 472/1739MB (lfb 213x4MB) cpu [10%,3%,0%,off]@1530 EMC 11%@300 AVP 0%@204 VDE 120 GR3D 0%@72 EDP limit 0
E/TegraStats( 1415): RAM 472/1739MB (lfb 213x4MB) cpu [10%,1%,0%,off]@1530 EMC 11%@300 AVP 0%@204 VDE 120 GR3D 0%@72 EDP limit 0
E/TegraStats( 1415): RAM 472/1739MB (lfb 213x4MB) cpu [11%,3%,0%,off]@1530 EMC 11%@300 AVP 0%@204 VDE 120 GR3D 0%@72 EDP limit 0
E/TegraStats( 1415): RAM 472/1739MB (lfb 213x4MB) cpu [10%,3%,0%,off]@1530 EMC 11%@300 AVP 0%@204 VDE 120 GR3D 0%@72 EDP limit 0
E/TegraStats( 1415): RAM 472/1739MB (lfb 213x4MB) cpu [10%,1%,0%,off]@1530 EMC 11%@300 AVP 0%@204 VDE 120 GR3D 0%@72 EDP limit 0
E/TegraStats( 1415): RAM 472/1739MB (lfb 213x4MB) cpu [12%,4%,3%,off]@1530 EMC 12%@300 AVP 0%@204 VDE 120 GR3D 0%@72 EDP limit 0
E/TegraStats( 1415): RAM 472/1739MB (lfb 213x4MB) cpu [12%,0%,2%,off]@1530 EMC 11%@300 AVP 0%@204 VDE 120 GR3D 0%@72 EDP limit 0
E/TegraStats( 1415): RAM 472/1739MB (lfb 213x4MB) cpu [10%,0%,2%,off]@1530 EMC 11%@300 AVP 0%@204 VDE 120 GR3D 0%@72 EDP limit 0
E/TegraStats( 1415): RAM 474/1739MB (lfb 213x4MB) cpu [25%,4%,0%,off]@1530 EMC 11%@300 AVP 0%@204 VDE 120 GR3D 0%@72 EDP limit 0