aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-10-12 16:56:41 +0200
committerSverker Eriksson <[email protected]>2016-10-14 14:43:50 +0200
commit7d5021bc9e1150b5d839438756851b3175f3ba85 (patch)
treeec42ae2223f7671c19e5b0e17a3c709efe6ef1ac
parentee0531308b0cc57f0312e1d0676635969d8a8029 (diff)
downloadotp-7d5021bc9e1150b5d839438756851b3175f3ba85.tar.gz
otp-7d5021bc9e1150b5d839438756851b3175f3ba85.tar.bz2
otp-7d5021bc9e1150b5d839438756851b3175f3ba85.zip
erts: Disable DBG_TRACE_MFA for debug build
-rw-r--r--erts/emulator/beam/beam_load.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/erts/emulator/beam/beam_load.h b/erts/emulator/beam/beam_load.h
index 5f0f34fcdd..43cf6597df 100644
--- a/erts/emulator/beam/beam_load.h
+++ b/erts/emulator/beam/beam_load.h
@@ -151,10 +151,16 @@ struct BeamCodeLineTab_ {
#define LOC_FILE(Loc) ((Loc) >> 24)
#define LOC_LINE(Loc) ((Loc) & ((1 << 24)-1))
-#ifdef DEBUG
-# define ENABLE_DBG_TRACE_MFA
-#endif
+/*
+ * MFA event debug "tracing" usage:
+ *
+ * #define ENABLE_DBG_TRACE_MFA
+ * call dbg_set_traced_mfa("mymod","myfunc",arity)
+ * for the function(s) to trace, in some init function.
+ *
+ * Run and get stderr printouts when interesting things happen to your MFA.
+ */
#ifdef ENABLE_DBG_TRACE_MFA
void dbg_set_traced_mfa(const char* m, const char* f, Uint a);