问题
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:
- AMD Code Analyst
- Sleepy
A little googling gives a impressive list of freebies(disclaimer: I haven't used these):
- Shiny
- Google Test
- 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