原文:Linux下程序的Profile工具

我们在写程序,特别是嵌入式程序的时候,通常需要对程序的性能进行分析,以便程序能够更快更好地运行,达到实时 real time 的目的。如果程序很大,分析起来就很困难。如果有个工具能够自动进行程序的性能分析,那就最好了。这里介绍一种Linux下程序的Profiling工具 GNU profiler。 gprof的基本用法: 使用 pg 选项编译和链接你的应用程序 在gcc编译程序的时候,加上 pg选 ...

2012-10-17 14:34 0 6189 推荐指数:

查看详情

Linux profile

# /etc/profile # System wide environment and startup programs, for login setup# Functions and aliases go in /etc/bashrc pathmunge () { if ! echo ...

Thu Jul 26 02:03:00 CST 2018 0 831
Linuxprofile与bashrc的区别

/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc很容易混淆,他们之间有什么区别?它们的作用到底是什么?/etc/profile: 用来设置系统环境参数,比如$PATH. 这里面的环境变量是对系统内所有用户生效的。/etc/bashrc ...

Thu Feb 28 00:50:00 CST 2019 0 592
Linux 环境/etc/profile和/etc/profile.d 的区别

Linux 环境/etc/profile和/etc/profile.d 的区别 区别: 1. 两个文件都是设置环境变量文件的,/etc/profile是永久性的环境变量,是全局变量,/etc/profile.d/设置所有 用户生效 ...

Sat Dec 02 07:20:00 CST 2017 0 2354
Linux 环境/etc/profile和/etc/profile.d 的区别

/etc/profile 文件 当一个用户登录Linux系统或使用su -命令切换到另一个用户时,也就是Login shell 启动时,首先要确保执行的启动脚本就是 /etc/profile 。 敲黑板:只有Login shell 启动时才会运行 /etc/profile 这个脚本 ...

Sun Mar 25 04:32:00 CST 2018 2 26934
简析 Linux 的 bashrc 和 profile 的差异,并利用其实现程序开机自启动

     1. bashrc是在系统启动后就会自动运行。   2. profile是在用户登录后才会运行,常在/etc/profile文件中修改环境变量,在这里修改的内容是对所有用户起作用的。   3. 在profile文件添加或修改的内容需要注销系统才能生效。   4. 进行设置后 ...

Sat Feb 19 00:28:00 CST 2022 0 749
linux 修改etc/profile文件

etc/profile文件是只读的,直接用vi或gedit打开修改后是无法保存的。要修改profile,需要取得root权限,(使用gedit编辑) 1. su root 输入密码 进入root模式 2. $sudo gedit /etc/profile 之后就可以保存 ...

Sat Apr 27 05:06:00 CST 2019 0 5412
Linux通过源码编译安装程序(configure/make/make install的作用,然后在/etc/profile文件里修改PATH环境变量)

一、程序的组成部分 Linux程序大都是由以下几部分组成: 二进制文件:也就是可以运行的程序文件 库文件:就是通常我们见到的lib目录下的文件 配置文件:这个不必多说,都知道 帮助文档:通常是我们在Linux用man命令查看的命令的文档 二、Linux程序的存放目录 Linux ...

Thu Sep 07 03:58:00 CST 2017 0 4306
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM