3 ms·
Before reaching for a "real profiler" there's always the poor man's sampling profiler: gdb -p $PID ctrl-c bt c ctrl-c bt c crl-c bt c ...
by cozzyd 6y ago
Before reaching for a "real profiler" there's always the poor man's sampling profiler:
gdb -p $PID
ctrl-c
bt
c
ctrl-c
bt
c
crl-c
bt
c
...
- viraptor 6y agoLess keyboard bashing: `while true ; do gdb -p $PID --batch -ex bt ; done`