c - Finding which functions are called in a multi-process program without modifying source? -
I am working on a project where I need to find out which functions were written in various Linux programs (C ) Are given special inputs to compile a program with my current viewpoint -PP (profiling option), and it shows that the functions of Gpriff's output are found by processing. . Functions that only appear in the output file at least once.
The obvious problem is that only one process can write in the GPRF output file. If the program uses several processes, then I do not get any profile output from other processes.
Is GPRF any way to generate an output file for each process (probably labeled by PID)? Manual suggests that each process can be changed into separate directories, but I do not want to modify the source code to do this. Can any other tool help Linux?
Take a look at GCOW:
Comments
Post a Comment