The event tracer is a developer tool that logs in the footer of the window all calls to trigger_event method. You can use this plugin to see what events is PhpWebGallery calling. Note that $conf['show_queries'] must be true.