`
- 浏览:
43854 次
-
linux中Dcumentation目录下的basic_profiling.txt文档翻译
These instructions are deliberately very basic. If you want something clever,
go read the real docs ;-) Please don't add more stuff, but feel free to
correct my mistakes ;-) (mbligh@aracnet.com)
Thanks to John Levon, Dave Hansen, et al. for help writing this.
这些命令是故意让他们非常基础的。如果你想理解的更加清楚一些的话,去阅读真实的文档。
请不要增加更多的事物,但是请一定要纠正我的错误(mbligh@aracnet.com)。
特别感谢John Levon, Dave Hansen等人帮助编写这个文档。
<test> is the thing you're trying to measure.
Make sure you have the correct System.map / vmlinux referenced!
IMHO it's easier to use "make install" for linux and hack /sbin/installkernel
to copy config files, system.map, vmlinux to /boot.
<test>命令是你想要去测试的事情。请确认你由正确的System.map / vmlinux引用。使用"make install"
命令和裁剪/sbin.installkernel来复制配置文件,system.map,vnlinux到/boot目录下是非常简单的。
Readprofile
Readprofile命令
-----------
You need a fixed readprofile command for 2.5 ... either get hold of
a current version from:
http://www.kernel.org/pub/linux/utils/util-linux/
在内核2.5中你需要一个固定的readprofile命令,你可以通过网站http://www.kernel.org/pub/linux/utils/util-linux/
获取一个最新的版本。
or get readprofile binary fixed for 2.5 / akpm's 2.5 patch from
ftp://ftp.kernel.org/pub/linux/kernel/people/mbligh/tools/readprofile/
或者是从ftp://ftp.kernel.org/pub/linux/kernel/people/mbligh/tools/readprofile/
获取一个固定的2.5/akpm's内核的readprofile二进制补丁。
Add "profile=2" to the kernel command line.
添加"profile=2"到内核命令行中。
clear readprofile -r 清除 readprofile -r参数
<test>
dump output readprofile -m /boot/System.map > captured_profile 重定向输出文件 readprofile -m /boot/System.map > captured_profile
Oprofile
--------
get source (I use 0.5) from http://oprofile.sourceforge.net/
从网站http://oprofile.sourceforge.net/获取源码(我使用的是0.5版本)。
add "idle=poll" to the kernel command line
添加"idle=poll"到内核命令行中。
Configure with CONFIG_PROFILING=y and CONFIG_OPROFILE=y & reboot on new kernel
配置 CONFIG_PROFILING=y 和 CONFIG_OPROFILE=y,并且在新内核中重新启动
./configure --with-kernel-support
./configure --内核支持
make install 执行安装指令
One time setup (pick appropriate one for your CPU):
一次安装(为你的CPU挑选适当的一个)
P3 opcontrol --setup --vmlinux=/boot/vmlinux \
--ctr0-event=CPU_CLK_UNHALTED --ctr0-count=100000
Athlon/x86-64 opcontrol --setup --vmlinux=/boot/vmlinux \
--ctr0-event=RETIRED_INSNS --ctr0-count=100000
P4 opcontrol --setup --vmlinux=/boot/vmlinux \
--ctr0-event=GLOBAL_POWER_EVENTS \
--ctr0-unit-mask=1 --ctr0-count=100000
start daemon opcontrol --start-daemon
clear opcontrol --reset
start opcontrol --start
<test>
stop opcontrol --stop
dump output(重定向输出) oprofpp -dl -i /boot/vmlinux > output_file
分享到:
Global site tag (gtag.js) - Google Analytics
相关推荐
trace32支持大尺寸内存实时跟踪和实时特性描绘,该文档资料具体介绍了这两种方法的区别、用途以及配置方法。
Debugging Profiling windows ce 6.0
usb debug 工具和方法文档,usbmon等的使用以及工具。
从pandas-profiling官方github下载好的pandas-profiling包,目前(2020年6月18日)最新版本,安装方式:pip install 压缩包路径
资源来自pypi官网。 资源全名:pandas-profiling-2.0.3.tar.gz
python库。 资源全名:taktile_profiling-0.5.27b3-py2.py3-none-any.whl
资源分类:Python库 所属语言:Python 资源全名:pdb_profiling-0.2.7a3.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
This package contains 3 kid: 1. a book Developing Flex Applications 2. a web page viewer for doc88 ebt ... CONTENTS PART I: Presenting Flex CHAPTER 1: Introducing Flex....About Flex....
Laravel开发-profiling .zip.zip
python库,解压后可用。 资源全名:pytest_html_profiling-1.0.0-py2.py3-none-any.whl
资源来自pypi官网。 资源全名:pytest_html_profiling-1.0.0-py2.py3-none-any.whl
Jwebap的开发分为两个部分Jwebap-core部分,Jwebap-plugin部分。core部分基于jdk14提供了类静态...我觉得,好的profiling应该能够根据不同的人群按需使用,同时在功能不断复杂和强大的过程中仍然能够保证较轻的架子。
Eclipsecon08-Profiling.ppt
python库,解压后可用。 资源全名:taktile_profiling-0.2.11-py2.py3-none-any.whl
资源来自pypi官网。 资源全名:taktile_profiling-0.2.11-py2.py3-none-any.whl
non_transgenic_cell_type_profiling 该存储库包含用R编写的脚本,用于执行数据分析和生成手稿的图形: Xu X,Stoyanova EI,Lemiesz A,Xing J,Mash DC,Heintz N(2018)。 经典定义的人类和啮齿动物神经元和...
资源分类:Python库 所属语言:Python 资源全名:pandas-profiling-3.1.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
python库。资源全名:taktile_profiling-0.8.4b0-py2.py3-none-any.whl
Linux Profiling at Netflix.pdf