Can anyone recommend any tools for compile and runtime analysis of C++ code? I'm being hit day after day with requests to identify where certain overloads of functions are being used in a very large code base.
My current method involves a combination of (a) text search using grep / find and (b) spoofing the include files to comment out the overloads in question, and fully recompiling thus breaking the build where the overloads are used. As you can imagine this is very time consuming.
I'm doing this on a Red Hat Linux platform, by the way.
Open the Performance Profiler by choosing Debug > Performance Profiler (or Alt + F2). For more information on using the CPU Usage or Memory usage tool in the Performance Profiler vs. the debugger-integrated tools, see Run profiling tools with or without the debugger.
Open the Performance Profiler by choosing Debug > Performance Profiler (or Alt + F2). The tool shows each async operation in a list view. You can see information such as the start time, end time, and total time for an async operation.
The C Profiler tool enables the collection and display of execution profile data on C software source code bases of arbitrary size. It is a member of SD's family of Profiler tools.
I've used a combination of gprof and a script called gprof2dot which gives you a call graph showing how much time is spent in each method.
See this article on gprof. Also take a look at:
Optimizing C/C++ programs using the GProf profiler
Here is an example call graph showing time spent in each method ( taken from the gprof2dot page):
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With