Free profiling in C++? [duplicate]

前提是你 提交于 2020-01-04 09:06:40

问题


Possible Duplicate:
What's your favorite profiling tool (for C++)

In Java and they have a nice & free profiler that comes with the sdk called jvisualvm. Is there anything like that for C++? I'm on Windows and have Visual Studio 2010. I'm a student/hobbyist, so something free would be nice.

jvisualvm lets you look inside your app and has a lot of need info. How much cpu/memroy things are taking, how many times it's being called, total and so on.


回答1:


  1. AMD Code Analyst
  2. Sleepy

A little googling gives a impressive list of freebies(disclaimer: I haven't used these):

  1. Shiny
  2. Google Test
  3. Windows Performance Analysis

Hth.




回答2:


The Windows Peformance Toolkit is a very thorough and free, among other things it provides a function level sampling based profiler. The tutorial / guide that it comes with explains how to use it.

As mentioned above AMD's code analyst is also quite good and free.



来源:https://stackoverflow.com/questions/14879169/profile-mex-c-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!