sprof
Read and display shared object profiling data. tldr-pages
On Linux
Linux
Read and display shared object profiling data. Note: Requires profile data generated via the $LD_PROFILE environment variable.
Generate a flat profile and call graph (default output)
sprof path/to/library.so path/to/library.so.profileIdentifyGenerate a flat profile with counts and ticks
sprof --flat-profile path/to/library.so path/to/library.so.profileIdentifyGenerate a call graph
sprof --graph path/to/library.so path/to/library.so.profileIdentifyPrint call pairs and their usage counts
sprof --call-pairs path/to/library.so path/to/library.so.profileIdentifyUse profile data from current directory (auto-detected by soname)
sprof path/to/library.soIdentify