"-pg" option should be used for compiling app/libraries
export LD_LIBRARY_PATH=<path to so># execute app using uftraceuftracerecord./app
uftrace replay# DURATION TID FUNCTION [645920] |main() {19.924 us [645920] |puts(); [645920] |sample_lib() {10.000 s [645920] |sample_lib();10.000 s [645920] | } /* sample_lib */10.000 s [645920] | } /* main */
uftrace graph# Function Call Graph for'a.out' (session: e29b6ce8fa6d7e63)========== FUNCTION CALL GRAPH ==========# TOTAL TIME FUNCTION10.000 s : (1) a.out10.000 s : (1) main19.924 us : +-(1) puts : |10.000 s : +-(1) sample_lib10.000 s : (1) sample_lib
TBD
Live C programming
Display each line while executing ( similar to -x in bash )