Add a new "Messages" boolean parameter to performance logs, which, when set, records GLIB log messages in the performance log as markers, with an accompanying sample capturing their backtrace. This option is enabled by default. (cherry picked from commit 9e0fdc8e)