-
-
Notifications
You must be signed in to change notification settings - Fork 67
Development
Gaute Hope edited this page Aug 27, 2017
·
11 revisions
Compile without the --release option to enable debugging:
$ scons # (not using --release)Then run astroid using gdb (here without starting the automatic polling):
$ gdb --args ./astroid --no-auto-pollafter a crash, type e.g. bt at the gdb prompt to get a backtrace.
Compile with the --profiler option:
$ scons --profilerTo profile, run astroid:
$ astroid --no-auto-poll # no automatic pollingthis creates the file gmon.out in the current directory. Use gprof to parse the output, and gprof2dot and dot (part of graphviz) to graph the output:
$ gprof astroid | gprof2dot -s | dot -Tpng -o prof.png