标题: 关于tprof命令-询问
Remember
LU幼天使
Rank: 2



UID 253
精华 0
积分 22
帖子 43
活跃指数 0
LU金币 2006 个
LU金条 0 个
阅读权限 20
注册 2003-9-30
 
发表于 2003-10-9 13:22  资料  个人空间  短消息  加为好友 
cool.gif 一般在系统管理中,习惯用到tprof命令的哪几个参数,格式是什么?

顶部
workaholic
荣誉斑竹
Rank: 14Rank: 14Rank: 14Rank: 14


LU爱心使者  
UID 124
精华 40
积分 1763
帖子 3264
活跃指数 223
LU金币 9088 个
LU金条 1486 个
阅读权限 200
注册 2003-9-25
 
发表于 2003-10-10 08:55  资料  个人空间  主页 短消息  加为好友  添加 workaholic 为MSN好友 通过MSN和 workaholic 交谈
看看man search自己想要的信息。

Examples
1、Basic global program and thread-level summary
$ tprof -x sleep 10
Mon May 20 00:39:26 2002 System: AIX 5.2 Node: dreaming Machine: 000671894C00
Starting Command sleep 10
stopping trace collection.
Generating sleep.prof
The resulting sleep.prof file only contains the summary report section.

2、Global profiling with all options
$ tprof -skeuj -x sleep 10
Mon May 20 00:39:26 2002
System: AIX 5.2 Node: drea
ming Machine: 000671894C00
Starting Command sleep 10
stopping trace collection.
Generating sleep.prof
The resulting sleep.prof file contains the summary report and global profile sections.

3、Single process level profiling
$ tprof -u -p workload -x workload
Mon May 20 00:39:26 2002
System: AIX 5.2 Node: drea
ming Machine: 000671894C00
Starting Command workload stopping trace collection.
Generating workload.prof
The resulting workload.prof file contains the summary report and the global user mode profile sections, and one process level profile section for the process 'workload' that contains only a user mode profile subsection.

4、Multiple process level profiling
$ tprof -se -p send,receive -x startall
Mon May 20 00:39:26 2002
System: AIX 5.2 Node: dreaming Machine: 000671894C00
Starting Command startall
stopping trace collection.
Generating startall.prof
The resulting startall.prof file contains the summary report, the global shared libary mode profile, and the global kernel extension profile sections, and two process level profile sections: one for the process 'send', and one for the process 'receive'. The process level sections each contain two subsections: one with shared libary profiling information and one with kernel extentions profiling information.

5、Microprofiling
$ tprof -m ./tcalc -u -x ./tcalc
Mon May 20 00:47:09 2002
System: AIX 5.2 Node: dreaming Machine: 000671894C00
Starting Command ./tcalc
stopping trace collection.
Generating tcalc.prof
Generating tcalc.tcalc.c.mprof
The resulting tcalc.prof file contains the summary report and the global user mode profile sections. The resulting tcalc.tcalc.c.mprof file contains the micro-profiling report.

6、Automated offline mode
tprof -c -A all -x sleep 10
Starting Command sleep 10
stopping trace collection.
Mon May 20 00:52:52 2002
System: AIX 5.2 Node: dreaming Machine: 000671894C00
Generating sleep.ctrc
Generating sleep.csyms
Generating sleep.prof





mail & msn : workaholic@yeah.net
顶部
 



当前时区 GMT+8, 现在时间是 2008-7-9 15:19
乐悠LoveUnix论坛-京ICP备05005823号

Thanks to Discuz!  © 2001-2007    Power by LoveUnix.net
Processed in 0.051353 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - 乐悠LoveUnix - Archiver - WAP