use perf to profile code. need to compile with -fno-omit-frame-pointer -ggdb refer to https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html
use perf to profile code.
need to compile with -fno-omit-frame-pointer -ggdb
refer to https://gcc.gnu.org/onlinedocs/gcc/Debugging-Options.html