comphelper/source/misc/traceevent.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 576082417393d8be35aea998a13fd3f79551db1c Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Tue Apr 27 14:02:43 2021 +0300 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Thu Apr 29 14:13:27 2021 +0200 Enable turning on trace event recording in a dbgutil build with an env var Change-Id: Ie0efdd2d5da0a45ba5e82be455d36dc777b5efb9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114782 Tested-by: Tor Lillqvist <t...@collabora.com> Reviewed-by: Tor Lillqvist <t...@collabora.com> diff --git a/comphelper/source/misc/traceevent.cxx b/comphelper/source/misc/traceevent.cxx index 30bc3d51e2d8..d95cb1fd9067 100644 --- a/comphelper/source/misc/traceevent.cxx +++ b/comphelper/source/misc/traceevent.cxx @@ -22,8 +22,11 @@ namespace comphelper { +#ifdef DBG_UTIL +std::atomic<bool> TraceEvent::s_bRecording = (getenv("TRACE_EVENT_RECORDING") != nullptr); +#else std::atomic<bool> TraceEvent::s_bRecording = false; - +#endif int ProfileZone::s_nNesting = 0; namespace _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits