Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

does such a c++ tool exist? [I dont know what to call it] [closed]

I am going through the process of trying to figure out how a library of code works. I would like some sort of tool that would analyze the program that I run off of the library and tells me what functions are called in what order by each thread. Does such a tool exist? What google terms would I use to find such a program?

Note: Using VS2008/Win7/C++

like image 374
VSC Avatar asked Nov 29 '22 18:11

VSC


2 Answers

I think a call graph may help you. Most profilers can generate a call graph after profiling. Profiling can also help you identified what code is being used most often.

Another possibility is using a tool to generate sequence diagrams. This won't show you specifically what happened during runtime, but it will give a clear idea what the code is doing.

Regards Dirk

like image 74
Dirk Avatar answered Dec 05 '22 06:12

Dirk


A profiler or code coverage tool will tell you this.

like image 38
Kenneth Cochran Avatar answered Dec 05 '22 06:12

Kenneth Cochran