Mercurial > cpython-lru_cache-weakref
comparison Python/getargs.c @ 3024:54aa87b1ccee legacy-trunk
Implemented two new functions in sys:
getcounts() returns a list of counts of allocations and
deallocations for all different object types.
getobjects(n [, type ]) returns a list of recently allocated
and not-yet-freed objects of the given type (all
objects if no type given). Only the n most recent
(all if n==0) objects are returned.
getcounts is only available if compiled with -DCOUNT_ALLOCS,
getobjects is only available if compiled with -DTRACE_REFS. Note that
everything must be compiled with these options!
| author | Sjoerd Mullender <sjoerd@acm.org> |
|---|---|
| date | Tue, 29 Aug 1995 09:18:14 +0000 |
| parents | e734c7235727 |
| children | 6098aaa8ae7f |
comparison
equal
deleted
inserted
replaced
| 3023:87847228b158 | 3024:54aa87b1ccee |
|---|
