[英]How to list all the library functions used by any c program after 03 optimization
I can get the name of all user functions in assembly file, and using gprof. 我可以在汇编文件中使用gprof获取所有用户函数的名称。 But I want to know how many time FFT or any other benchmark called sin function, print function and other library functions. 但是我想知道多少次FFT或其他称为sin函数,print函数和其他库函数的基准。
If you're dynamically linking and running on Linux, you can use ltrace : 如果要动态链接并在Linux上运行,则可以使用ltrace :
ltrace is a program that simply runs the specified command until it exits. ltrace是一个仅运行指定命令直到退出的程序。 It intercepts and records the dynamic library calls which are called by the executed process and the signals which are received by that process. 它截获并记录由执行的过程调用的动态库调用以及该过程接收的信号。 It can also intercept and print the system calls executed by the program. 它还可以拦截并打印程序执行的系统调用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.