summaryrefslogtreecommitdiff
path: root/indra/llcommon/llcallstack.h
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2018-01-29 16:35:56 +0000
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2018-01-29 16:35:56 +0000
commit3a8b1bf1e4b30e8efb1fe161706c8d5f41fccad8 (patch)
tree708e47c603275614c5cb8eecd9bdb56dbdc53317 /indra/llcommon/llcallstack.h
parent26add5700d88338b94ce891892948998b0468131 (diff)
SL-859 - exceptionally verbose logging of object state updates, likely temporary
Diffstat (limited to 'indra/llcommon/llcallstack.h')
-rw-r--r--indra/llcommon/llcallstack.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/llcommon/llcallstack.h b/indra/llcommon/llcallstack.h
index 1f7a7689d7..5acf04a49f 100644
--- a/indra/llcommon/llcallstack.h
+++ b/indra/llcommon/llcallstack.h
@@ -78,3 +78,10 @@ struct LLContextStatus
};
LL_COMMON_API std::ostream& operator<<(std::ostream& s, const LLContextStatus& context_status);
+
+#define dumpStack(tag) \
+ if (debugLoggingEnabled(tag)) \
+ { \
+ LLCallStack cs; \
+ LL_DEBUGS(tag) << "STACK:\n" << "====================\n" << cs << "====================" << LL_ENDL; \
+ }