开发者

What is profiling in unix? [closed]

开发者 https://www.devze.com 2022-12-29 07:25 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 5 years ago.

开发者_StackOverflow中文版 Improve this question

Can anybody tell me about 'profiling' in unix by giving a small example. Thank you!


You'll need to give us some more context if you want a useful answer. Broadly speaking, profiling a program is to instrument the executable with some extra statements that record details of execution which you can later analyse to identify parts that are slow, consume too much memory, consume too much CPU etc. Here's a quickie along with examples on how to use gprof which is the GNU profiler for C. http://www.cs.utah.edu/dept/old/texinfo/as/gprof.html#SEC2


If you want to shine in your exam about profiling, talk about Dtrace.

0

精彩评论

暂无评论...
验证码 换一张
取 消