最近在调试一些数据库相关的C程序,发现速度暴慢,不知道问题在哪里 听说有个工具叫profile,能够给出具体哪些函数花了多少时间,哪里比较费时的报告,只要在编译参数里加个-p就可以 但一直找不到具体资料,,而且这个单词网上以查,出现很多无关信息,, 如有高手知道请告诉小弟啊, 如果知道有同类工具也请告诉偶一声
by bigapple2008 - C/C++ - 2005-09-05 14:07:04 阅读(1110) 回复(5)
1、linux是一个多用户的操作系统。每个用户登录系统后,都会有一个专用的运行环境。通常每个用户默认的环境都是相同的,这个默认环境实际上就是一组环境变量的定义。用户可以对自己的运行环境进行定制,其方法就是修改相应的系统环境变量。 2、常在/etc/profile文件中修改环境变量,在这里修改的内容是对所有用户起作用的。以下主要操作将在该文件中进行。 3、如何添加环境变量。 例如添加”NAME=liheng“ 。 在profi...
1、linux是一个多用户的操作系统。每个用户登录系统后,都会有一个专用的运行环境。通常每个用户默认的环境都是相同的,这个默认环境实际上就是一组环境变量的定义。用户可以对自己的运行环境进行定制,其方法就是修改相应的系统环境变量。 2、常在/etc/profile文件中修改环境变量,在这里修改的内容是对所有用户起作用的。以下主要操作将在该文件中进行。 3、如何添加环境变量。 例如添加”NAME=liheng“ 。 在profil...
1 内核对ctags/cscope的支持是native的,直接make ctags && cscope即可,这个是别的浏览工具都比不 2 如何在内核中找到内核符号表 1. 从 System.map 文件直接得到地址。 例如,要得到 do_fork 的地址,可以在命令行执行 $grep do_fork /usr/src/linux/System.map 。 2. 使用 nm 命令。 $nm vmlinuz |grep do_fork 3. 从 /proc/kallsyms 文件获得地址。 $cat /proc/kallsyms |grep do_fork 本文来...
背景: home目录下的配置文件只能控制一个用户,如果所有用户的某些设置相同的话,而且在启动时就进行设置,则可将相应的设置入入/etc/profie中 正文: # /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). if [ "$PS1" ]; then if [ "$BASH" ]; then PS1='\u@\h:\w\$ ' if [ -f /etc/bash.bashrc ]; then . /etc/bash...
####################UNIX /etc/profile################# 1 umask 007 2 # @(#)B.11.11_LR 3 4 # Default (example of) system-wide profile file (/usr/bin/sh initialization). 5 # This should be kept to the bare minimum every user needs. 6 7 # Ignore HUP, INT, QUIT now. 8 9 trap \"\" 1 2 3 10 11 # Set the default paths - Do NOT modify the...
PATH=$PATH:/usr/bin:/usr/DynamicLinkManager/bin:/usr/es/sbin/cluster/utilities:. export PATH export PS1=`hostname`:`id -un`:['$PWD']# #The following line is added by License Use Management installation export PATH=$PATH:/usr/local/bin:/usr/opt/ifor/ls/os/aix/bin
PATH=$PATH:/usr/bin:/usr/DynamicLinkManager/bin:/usr/es/sbin/cluster/utilities:.\r\nexport PATH\r\n\r\nexport PS1=`hostname`:`id -un`:[\'$PWD\']#\r\n\r\n#The following line is added by License Use Management installation\r\nexport PATH=$PATH:/usr/local/bin:/usr/opt/ifor/ls/os/aix/bin
我的.profile 里只有一行:PATH=$PATH:/usr/local/bin:/usr/ccs/bin:/usr/j2se/bin;export PATH 在etc/profile里有: #ident "@(#)profile 1.18 98/10/03 SMI" /* SVr4.0 1.3 */ # The profile that all logins get before using their own .profile. trap "" 2 3 export LOGNAME PATH if [ "$TERM" = "" ] then if /bin/i386 then TERM=sun-color else T...
我的.profile 里只有一行:PATH=$PATH:/usr/local/bin:/usr/ccs/bin:/usr/j2se/bin;export PATH\r\n在etc/profile里有:\r\n#ident \"@(#)profile 1.18 98/10/03 SMI\" /* SVr4.0 1.3 */\r\n\r\n# The profile that all logins get before using their own .profile.\r\n\r\ntrap \"\" 2 3\r\nexport LOGNAME PATH\r\n\r\nif [ \"$TERM\" = \"\" ]\r\nthen\r\n if /bin/i386\r\n then\r\n ...