Profiling and Debugging
To profile code, untar special profiling release into directory on the file system and simply launch it:
tar xzf lsp-plugins-profile-<version>-<arch>.tar.gz cd lsp-plugins-profile-<version>-<arch> ./lsp-plugins-profile <plugin-id>
After the execution, the profiling file 'gmon.out' will be generated. To generate profiling information, issue the gprof command:
gprof ./lsp-plugins-profile gmon.out >lsp-plugins.profile
For debugging purposes the GNU Debugger (gdb) may be used:
gdb --args ./lsp-plugins-profile <plugin-id>
For debugging and getting crash stack trace with Ardour, please follow these steps:
- Open console
- Run ardour from console with --gdb option
- After gdb starts, issue 'run' command
- Do usual stuff to reproduce the problem
- After Ardour crashes, type 'thread apply all bt' in console and attach the output to the bug report.