diff options
author | Tim Peters <tim.peters@gmail.com> | 2003-04-18 00:45:59 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2003-04-18 00:45:59 (GMT) |
commit | 21d7d4d5ca465e515e40157cfae707d1ec09bb76 (patch) | |
tree | 82265064e634cd19f2b697ce74bb1f8e2d41b7e1 /Misc | |
parent | bbb931bebd9237183ee8bb0b5e90cf2ecb3fd046 (diff) | |
download | cpython-21d7d4d5ca465e515e40157cfae707d1ec09bb76.zip cpython-21d7d4d5ca465e515e40157cfae707d1ec09bb76.tar.gz cpython-21d7d4d5ca465e515e40157cfae707d1ec09bb76.tar.bz2 |
_Py_PrintReferenceAddresses(): also print the type name. In real use
I'm finding some pretty baffling output, like reprs consisting entirely
of three left parens. At least this will let us know what type the object
is (it's not str -- there's no quote character in the repr).
New tool combinerefs.py, to combine the two output blocks produced via
PYTHONDUMPREFS.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 3 | ||||
-rw-r--r-- | Misc/SpecialBuilds.txt | 11 |
2 files changed, 13 insertions, 1 deletions
@@ -162,6 +162,9 @@ Library Tools/Demos ----------- +- New script combinerefs.py helps analyze new PYTHONDUMPREFS output. + See the module docstring for details. + TBD Build diff --git a/Misc/SpecialBuilds.txt b/Misc/SpecialBuilds.txt index a3d3558..fc41767 100644 --- a/Misc/SpecialBuilds.txt +++ b/Misc/SpecialBuilds.txt @@ -62,7 +62,16 @@ sys.getobjects(max[, type]) envar PYTHONDUMPREFS If this envar exists, Py_Finalize() arranges to print a list of - all still-live heap objects. + all still-live heap objects. This is printed twice, in different + formats, before and after Py_Finalize has cleaned up everything it + can clean up. The first output block produces the repr() of each + object so is more informative; however, a lot of stuff destined to + die is still alive then. The second output block is much harder + to work with (repr() can't be invoked anymore -- the interpreter + has been torn down too far), but doesn't list any objects that will + die. The tool script combinerefs.py can be run over this to combine + the info from both output blocks. The second output block, and + combinerefs.py, were new in Python 2.3b1. --------------------------------------------------------------------------- PYMALLOC_DEBUG introduced in 2.3 |