c++ tools

build

strip

he strip utility removes debugging information, symbol tables, and other metadata from the compiled binary without altering its execution logic

1
strip --strip-all <binary_file>

daignose/debug

GDB

install debug tool

1
2
3
4
5
6
7
8
# 启用源
sudo dnf config-manager --set-enabled baseos-debuginfo appstream-debuginfo crb-debuginfo devel-debuginfo

# upgrade
sudo dnf upgrade glibc

# 避免使用docker源
sudo dnf debuginfo-install --disablerepo='docker*' glibc

Valgrind

Systemtap

FlameGraph

https://github.com/brendangregg/FlameGraph)

pstack

strace

perf

gperftools