简体   繁体   中英

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. But I want to know how many time FFT or any other benchmark called sin function, print function and other library functions.

If you're dynamically linking and running on Linux, you can use ltrace :

ltrace is a program that simply runs the specified command until it exits. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM