【老生常谈】求工具,谢谢!

NowDoIT 2011-11-03 03:20:42
最近有一软件产品性能下降过半,请问有什么工具能查看是什么地方或者是哪个函数占用了资源最多时间??

感谢大家!!!
...全文
72 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
qq120848369 2011-11-03
  • 打赏
  • 举报
回复
-gp -g

gprof
lengxujun 2011-11-03
  • 打赏
  • 举报
回复
gprofile
赵4老师 2011-11-03
  • 打赏
  • 举报
回复
VC企业版里面也有Profiling功能。
mk:@MSITStore:C:\MSDN98\98VS\2052\vccore.chm::/html/_core_profiling.3a_.overview.htm
Profiling: Overview
Home | How Do I | Details

Feature Only in Professional and Enterprise Editions Profiling is supported only in Visual C++ Professional and Enterprise Editions. For more information, see Visual C++ Editions.

The profiler is an analysis tool that you can use to examine the run-time behavior of your programs. By using profiler information, you can determine which sections of your code are working efficiently. The profiler can produce information showing areas of code that are not being executed or that are taking a long time to execute.

Because profiling is a tuning process, you should use the profiler to make your programs run better, not to find bugs. Once your program is fairly stable, you should start profiling to see where your code could perform better.

Use the profiler to determine whether,

an algorithm is effective (timing),


a function is being called too many or too few times with respect to the problem domain (counting), or


a piece of code is being covered by software testing procedures (coverage).
The profiler can be run from within the development environment or from the command line.

Types of Profiling


Profiling Tips


Profiling from the Command Line


Profiling from the Development Environment


Spy++


PView
seucs 2011-11-03
  • 打赏
  • 举报
回复
gcc 里面有 -gp 选项生成能被profile工具使用的信息,可以查看函数调用的次数,以此来进行性能分析
hulongchuan 2011-11-03
  • 打赏
  • 举报
回复
正在研发中,请稍侯。。。

69,373

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧