summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Debug.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2013-10-28 02:04:46 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2013-10-28 02:04:46 (GMT)
commite38f59cab5d40f09f15c5e65645aa2d8af165c66 (patch)
treed50c9d77698c3a82fcc4b64a5ff61b79c20a76f2 /src/engine/SCons/Debug.py
parente7888b15628b09af093621825b78df5cbcead088 (diff)
parent2be0f31b80087974b5e6d53e12542637636a2253 (diff)
downloadSCons-e38f59cab5d40f09f15c5e65645aa2d8af165c66.zip
SCons-e38f59cab5d40f09f15c5e65645aa2d8af165c66.tar.gz
SCons-e38f59cab5d40f09f15c5e65645aa2d8af165c66.tar.bz2
Merged in dirkbaechle/scons (pull request #92)
Fix: now counting instances only when requested via --debug=count (#2922)
Diffstat (limited to 'src/engine/SCons/Debug.py')
-rw-r--r--src/engine/SCons/Debug.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/SCons/Debug.py b/src/engine/SCons/Debug.py
index 1c0c638..9974039 100644
--- a/src/engine/SCons/Debug.py
+++ b/src/engine/SCons/Debug.py
@@ -35,6 +35,10 @@ import sys
import time
import weakref
+# Global variable that gets set to 'True' by the Main script,
+# when the creation of class instances should get tracked.
+track_instances = False
+# List of currently tracked classes
tracked_classes = {}
def logInstanceCreation(instance, name=None):