[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - comphelper/source
Tor Lillqvist (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 29 08:39:09 UTC 2021
comphelper/source/misc/traceevent.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 7a3d898a4391e092196d661c9fe3a4fb8df3e22b
Author: Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Apr 27 14:02:43 2021 +0300
Commit: Tor Lillqvist <tml at collabora.com>
CommitDate: Thu Apr 29 10:38:33 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/+/114796
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Tor Lillqvist <tml at collabora.com>
diff --git a/comphelper/source/misc/traceevent.cxx b/comphelper/source/misc/traceevent.cxx
index 2cd2db829169..efe1378d9364 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
More information about the Libreoffice-commits
mailing list