I have a script, which runs gdb with command file like this:
set logging file file_name
set logging on
thread apply all bt
q
y
Why pstack is much faster than this script? Can I achive that fastness with gdb somehow?
EDIT: The difference was gdb versions. I used gdb-7.10, and it took about 14 sec to dump stack traces. with gdb 7.0.1, which pstack used, it took 2 sec. Most of time went for gdb-7.10 on loading symbols from our lib, and I couldn't found the appropriate option for -readnever
in the new version.