summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2021-04-27 14:02:43 +0300
committerTor Lillqvist <tml@collabora.com>2021-04-29 10:38:33 +0200
commit7a3d898a4391e092196d661c9fe3a4fb8df3e22b (patch)
tree6453bcf040bfc342e45d0f35eee0c5b9fe8a5e1f /comphelper
parentb9c12bcf9b442e43fbc535c30caab513d07b9067 (diff)
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@gmail.com> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/traceevent.cxx5
1 files changed, 4 insertions, 1 deletions
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