[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12892: ‘gc-stats’ w/o ‘bytes-malloced’
From: |
Andy Wingo |
Subject: |
bug#12892: ‘gc-stats’ w/o ‘bytes-malloced’ |
Date: |
Tue, 05 Mar 2013 18:52:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) |
On Thu 15 Nov 2012 09:42, Thien-Thi Nguyen <address@hidden> writes:
> In pre-2.x Guile, ‘gc-stats’ returns an alist w/ keys:
>
> gc-time-taken
> cells-allocated
> total-cells-allocated
> cell-heap-size
> bytes-malloced
> gc-malloc-threshold
> gc-times
> gc-mark-time-taken
> cells-marked
> cells-swept
> malloc-yield
> cell-yield
> protected-objects
> cell-heap-segments
>
> In Guile 2.0.6, the keys are now:
>
> gc-time-taken
> heap-size
> heap-free-size
> heap-total-allocated
> heap-allocated-since-gc
> protected-objects gc-times
>
> I think the NEWS should mention this change and the documentation should
> summarize what the fields mean.
The specifics of this interface were never documented, so there's no
regression. For that reason I would not add to NEWS at this point, but
documentation would be nice. Patches gladly accepted :)
> Practically speaking, i am interested mostly in the 2.x equivalent for
> pre-2.x ‘bytes-malloced’, as its lack causes Guile-SDL to fail "make
> check DEBUG=1":
What is the meaning of this field?
We could track total allocations registered via
scm_gc_register_allocation.
Regards,
Andy
--
http://wingolog.org/