msm8953_64:/ # top -m 10 -t -d -n 2 -s cpu
Invalid argument "2".
Usage: top [ -m max_procs ] [ -n iterations ] [ -d delay ] [ -s sort_column ] [ -t ] [ -h ]
-m num Maximum number of processes to display.
-n num Updates to show before exiting.
-d num Seconds to wait between updates.
-s col Column to sort by (cpu,vss,rss,thr).
-H Show threads instead of processes.
-h Display this help screen.
1|msm8953_64:/ # top -m 10 -t -d 1 -n 2 -s cpu
User 74%, System 21%, IOW 0%, IRQ 1%
User 411 + Nice 2 + Sys 121 + Idle 10 + IOW 0 + IRQ 6 + SIRQ 3 = 553
PID TID USER PR NI CPU% S VSS RSS PCY Thread Proc
4796 4909 system 20 0 6% R 2416340K 413844K fg Thread-21 com.ailiving.car.device
5073 5073 root 20 0 5% R 9276K 2568K fg top top
628 4959 mediacod 18 -2 4% R 228952K 33796K fg VideoEncMsgThre media.codec
628 4941 mediacod 18 -2 4% R 228952K 33796K fg VideoEncMsgThre media.codec
628 4978 mediacod 18 -2 4% R 228952K 33796K fg VideoEncMsgThre media.codec
4796 4893 system 20 0 4% R 2416340K 413580K fg Thread-14 com.ailiving.car.device
628 4925 mediacod 18 -2 4% S 228952K 33796K fg VideoEncMsgThre media.codec
550 550 system -2 -8 3% R 106368K 8588K fg surfaceflinger /system/bin/surfaceflinger
4796 4854 system 10 -10 2% S 2416340K 413056K fg ving.car.device com.ailiving.car.device
4796 4807 system 20 0 1% R 2414988K 412264K fg HeapTaskDaemon com.ailiving.car.device