[Python-checkins] python/dist/src/Include object.h,2.117,2.118

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Thu, 17 Apr 2003 12:53:01 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1:/tmp/cvs-serv28526/python/Include

Modified Files:
	object.h 
Log Message:
_Py_PrintReferences():  Changed to print object address at start of each
new line.

New pvt API function _Py_PrintReferenceAddresses():  Prints only the
addresses and refcnts of the live objects.  This is always safe to call,
because it has no dependence on Python's C API.

Py_Finalize():  If envar PYTHONDUMPREFS is set, call (the new)
_Py_PrintReferenceAddresses() right before dumping final pymalloc stats.
We can't print the reprs of the objects here because too much of the
interpreter has been shut down.  You need to correlate the addresses
displayed here with the object reprs printed by the earlier
PYTHONDUMPREFS call to _Py_PrintReferences().


Index: object.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/object.h,v
retrieving revision 2.117
retrieving revision 2.118
diff -C2 -d -r2.117 -r2.118
*** object.h	23 Mar 2003 17:52:28 -0000	2.117
--- object.h	17 Apr 2003 19:52:27 -0000	2.118
***************
*** 583,586 ****
--- 583,587 ----
  PyAPI_FUNC(void) _Py_Dealloc(PyObject *);
  PyAPI_FUNC(void) _Py_PrintReferences(FILE *);
+ PyAPI_FUNC(void) _Py_PrintReferenceAddresses(FILE *);
  PyAPI_FUNC(void) _Py_AddToAllObjects(PyObject *, int force);