perfs
显示性能统计的信息。
格式
perfs
说明
[root@sylixos:/root]# help perfs
show performance statistics.
perfs
[root@sylixos:/root]#
此命令用来显示性能统计的信息,参数为管道缓存大小(128~4096)。
备注:
按 Ctrl+c 退出。
样例
[root@sylixos:/media/sdcard10]# perfs
Performance Statistics
Because 'static' function NOT in symbol table so if SAMPLE in 'static' function,
'POSSIBLE FUNCTION' will the nearest symbol with address.
NAME TID PID CPU SYMBOL SAMPLE TIME CONSUME POSSIBLE FUNCTION
---------------- ------- ----- --- ------------------ ------------------ ------------ -------------------------
perfs 4010069 0 1 0x00000000095587a8 0x00000000095587ac 181 archIntEnable
t_netjob 4010015 0 1 0x000000000949cb5c 0x000000000949cb5c 27 No symbol name
t_isrdefer 4010005 0 1 0x000000000982d5cc 0x000000000982d808 3 _TyITx
<unknown> 4010068 0 0 0x000000000965b590 0x000000000965c0fc 3 vfprintf
<unknown> 4010068 0 1 0x00000000096609f8 0x0000000009660a1c 3 lib_memchr
t_netproto 4010017 0 2 0x0000000009718f38 0x0000000009719318 2 etharp_tmr
<unknown> 4010068 0 2 0x0000000009661084 0x00000000096615e8 2 lib_memcpy
t_isrdefer 4010005 0 1 0x000000000944ec78 0x000000000944ed00 2 sio16c550TxIsr
<unknown> 4010068 0 1 0x000000000965083c 0x0000000009650854 2 memcpy
t_tshell 4010020 0 1 0x0000000009661d40 0x0000000009661d50 1 lib_strcmp
t_tshell 4010020 0 1 0x000000000963cf6c 0x000000000963cf6c 1 _Allocate_Even
字段说明:
字段 | 说明 |
---|---|
NAME | 线程名 |
TID | 线程ID |
PID | 线程所属进程ID |
CPU | CPU序号 |
SYMBOL | 符号地址 |
SAMPLE | 采样地址 |
TIME CONSUME | 函数执行计数 |
POSSIBLE FUNCTION | 执行函数名 |