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: