Message122795
| Author |
kristjan.jonsson |
| Recipients |
kristjan.jonsson |
| Date |
2010年11月29日.12:33:06 |
| SpamBayes Score |
0.0006646679 |
| Marked as misclassified |
No |
| Message-id |
<1291033990.01.0.373880351287.issue10576@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
As discussed here: http://mail.python.org/pipermail/python-ideas/2010-November/008813.html:
Adding the ability to register callbacks to be invoked before and after garbage collection runs. This can be used to gather run-time statistics such as timing information and frequency of garbage collection runs, and to perform application-specific cleanup of uncollecatable objects from gc.garbage.
The first patch is the code as currently in use in our codebase at CCP (ported from 2.7). There is only one callback registered and the callback signature is perhaps a bit lame. Also, no error checking. But it is shown here for reference and as a basis for discussion. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年11月29日 12:33:10 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson |
| 2010年11月29日 12:33:10 | kristjan.jonsson | set | messageid: <1291033990.01.0.373880351287.issue10576@psf.upfronthosting.co.za> |
| 2010年11月29日 12:33:06 | kristjan.jonsson | link | issue10576 messages |
| 2010年11月29日 12:33:06 | kristjan.jonsson | create |
|