It is strongly advised to use available Performance tool as:
Intel
Advisor, including now [2017] also a rooftop analysis: export ADVIXE_EXPERIMENTAL=roofline
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
advixe-gui &
See hints
regarding the analysis feeback.