Message207848
| Author |
bkabrda |
| Recipients |
bkabrda, vstinner |
| Date |
2014年01月10日.10:33:30 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1389350010.61.0.787957293986.issue19527@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
As noted in Misc/SpecialBuilds:
COUNT_ALLOCS
------------
Each type object grows three new members:
/* Number of times an object of this type was allocated. */
int tp_allocs;
/* Number of times an object of this type was deallocated. */
int tp_frees;
/* Highwater mark: the maximum value of tp_allocs - tp_frees so
* far; or, IOW, the largest number of objects of this type alive at
* the same time.
*/
int tp_maxalloc;
...
We use this for Fedora's python debug build to get some interesting debugging info. (If you try to "grep -r" through Python 3.4 source code, you'll find quite a few ifdefs with COUNT_ALLOCS.) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年01月10日 10:33:30 | bkabrda | set | recipients:
+ bkabrda, vstinner |
| 2014年01月10日 10:33:30 | bkabrda | set | messageid: <1389350010.61.0.787957293986.issue19527@psf.upfronthosting.co.za> |
| 2014年01月10日 10:33:30 | bkabrda | link | issue19527 messages |
| 2014年01月10日 10:33:30 | bkabrda | create |
|