ChinaUnix.net
相关文章推荐:

linux profile 工具

最近在调试一些数据库相关的C程序,发现速度暴慢,不知道问题在哪里 听说有个工具profile,能够给出具体哪些函数花了多少时间,哪里比较费时的报告,只要在编译参数里加个-p就可以 但一直找不到具体资料,,而且这个单词网上以查,出现很多无关信息,, 如有高手知道请告诉小弟啊, 如果知道有同类工具也请告诉偶一声

by bigapple2008 - C/C++ - 2005-09-05 14:07:04 阅读(1110) 回复(5)

相关讨论

1、linux是一个多用户的操作系统。每个用户登录系统后,都会有一个专用的运行环境。通常每个用户默认的环境都是相同的,这个默认环境实际上就是一组环境变量的定义。用户可以对自己的运行环境进行定制,其方法就是修改相应的系统环境变量。   2、常在/etc/profile文件中修改环境变量,在这里修改的内容是对所有用户起作用的。以下主要操作将在该文件中进行。   3、如何添加环境变量。   例如添加”NAME=liheng“ 。 在profi...

by coolcoolrain - Linux文档专区 - 2010-01-11 12:45:25 阅读(796) 回复(0)

1、linux是一个多用户的操作系统。每个用户登录系统后,都会有一个专用的运行环境。通常每个用户默认的环境都是相同的,这个默认环境实际上就是一组环境变量的定义。用户可以对自己的运行环境进行定制,其方法就是修改相应的系统环境变量。   2、常在/etc/profile文件中修改环境变量,在这里修改的内容是对所有用户起作用的。以下主要操作将在该文件中进行。   3、如何添加环境变量。   例如添加”NAME=liheng“ 。 在profil...

by 海上的帆 - Linux文档专区 - 2008-06-16 16:06:14 阅读(500) 回复(0)

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 本文来...

by soararing - Linux文档专区 - 2008-07-06 16:19:34 阅读(663) 回复(0)

背景: 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...

by bing_fox - Linux文档专区 - 2008-06-17 23:11:09 阅读(599) 回复(0)

####################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...

by diveming - HP-UX - 2008-03-18 09:41:54 阅读(3439) 回复(1)

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

by unixasdfg - AIX - 2007-09-17 11:12:47 阅读(2120) 回复(1)

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

by unixasdfg - AIX - 2007-09-17 10:54:58 阅读(3687) 回复(0)

我的.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...

by hao4212 - Solaris - 2005-01-30 14:05:58 阅读(1092) 回复(3)

我的.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 ...

by hao4212 - Solaris - 2005-01-30 14:05:58 阅读(2828) 回复(3)

请问对于每一个用户是否需要配置不同的profile,在给用户配置profile时各类参数设成什么值比较好?特别是对于内存的设置!

by newoen - Oracle - 2003-03-03 14:44:33 阅读(1144) 回复(2)