drorke points out that it'd be helpful to add the -fno-omit-frame-pointer option in release builds, which helps to generate flame graphs for deep stacks .
The option is already used in release builds of Impala and we found the performance penalty is small (
IMPALA-4132). As we have two release modes, i.e. RELEASE and RELWITHDEBINFO with symbols, we can add this option to RELWITHDEBINFO builds.