网站首页
本站精华
免费下载
游客:
注册
|
登录
|
会员
|
搜索
|
帮助
LoveUnix
»
AIX -IBM UNIX
» 关于tprof命令-询问
‹‹ 上一主题
|
下一主题 ››
投票
交易
悬赏
活动
打印
|
推荐
|
订阅
|
收藏
标题: 关于tprof命令-询问
Remember
LU幼天使
UID 253
精华 0
积分 22
帖子 43
活跃指数 0
LU金币 2006 个
LU金条 0 个
阅读权限 20
注册 2003-9-30
#1
大
中
小
使用道具
发表于 2003-10-9 13:22
资料
个人空间
短消息
加为好友
一般在系统管理中,习惯用到tprof命令的哪几个参数,格式是什么?
workaholic
荣誉斑竹
UID 124
精华
40
积分 1763
帖子 3264
活跃指数 223
LU金币 9088 个
LU金条 1486 个
阅读权限 200
注册 2003-9-25
#2
大
中
小
使用道具
发表于 2003-10-10 08:55
资料
个人空间
主页
短消息
加为好友
看看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
投票
交易
悬赏
活动
LoveUnix
专项技术区
> AIX -IBM UNIX
> 其他UNIX & Linux
> i5 (AS400) & IBM大机
> PC Server & HPC
> 存储设备
> 备份软件
> 网络 & 安全
> 编程开发 & Rational
> DB2 & Informix
> ORACLE等数据库
> 中间件技术
行业综合区
> 职业咨询 前程无忧
> 培训认证 行业入门
> 行业应用 项目实施
> 产品信息 商务交流
> Free download下载
交流灌水区
> 蓝色太平洋
> 墨香雅韵
> 共建家园
> 博客专区
当前时区 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
TOP
清除 Cookies
-
联系我们
-
乐悠LoveUnix
-
Archiver
-
WAP
界面风格
----------
Discuz! 5 Default
新DISCUZ风格
控制面板首页
编辑个人资料
积分交易
公众用户组
好友列表
升级个人空间
基本概况
流量统计
客户软件
发帖量记录
论坛排行
主题排行
发帖排行
积分排行
在线时间
管理团队
管理统计