Android
bootchart
systrace
Linux
strace
ftrace
perf
latencytop
Use LatencyTOP to find out where process latency is coming from
![](https://img.haomeiwen.com/i11349941/81dc61a46057229f.png)
![](https://img.haomeiwen.com/i11349941/70566b7f0dfed7ec.png)
- way 1
$ tar xzvf /.../latencytop-0.4.tar.gz
$ cd ./latencytop*
$ make
$ ./latencytop
Please enable the CONFIG_LATENCYTOP configuration in your kernel.
Exiting...
# sudo ./latencytop
LatencyTOP version 0.4 (C) 2008 Intel Corporation
- way 2
$ tar xjf /.../linux-2.6.26.2.tar.bz2
$ cd ./linux-2.6.26.2
$ cat /.../latencytop.patch | patch -p1
$ make menuconfig
$ make bzImage modules
- Error
root@xy4-OptiPlex-9020:~/workspace/git/mount# latencytop
mount: none is already mounted or /sys/kernel/debug busy
Please enable the CONFIG_LATENCYTOP configuration in your kernel.
Exiting...
dstat
$ sudo apt install dstat
![](https://img.haomeiwen.com/i11349941/cdc61430494d828f.png)
dtrace
stap
网友评论