diff options
author | Andy Wingo <wingo@pobox.com> | 2025-04-17 14:37:39 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2025-04-17 14:37:39 +0200 |
commit | 9b7f7f7554af58296dc88cfaa8d74dd0d8933254 (patch) | |
tree | ca17b45ab68b76f31fd84c3ca34ddb01300d6642 /libguile/whippet/src/gc-stack.c | |
parent | 7f23dea7dea4d9d4beb0b74b9b267dc71987aaf1 (diff) | |
download | guile-9b7f7f7554af58296dc88cfaa8d74dd0d8933254.tar.gz |
Switch statistics collection, GC hooks to use Whippet API
* libguile/gc.c: Define an event listener that collects basic
statistics, runs C hooks, and arranges to run the Scheme hook if it is
nonempty.
(scm_gc_stats): Fetch statistics from the gathered event data.
(scm_gc_dump): Use scm_basic_stats_print.
(scm_storage_prehistory): Fix indentation.
(scm_init_gc_protect_object): Remove dead code.
(queue_after_gc_hook): Not really needed, as we have an after-GC C event
to run the C hooks. Scheme hook activation is inlined into the event
listener.
(start_gc_timer, accumulate_gc_timer): No need any more.
(scm_init_gc): Simplify hook registration.
Diffstat (limited to 'libguile/whippet/src/gc-stack.c')
0 files changed, 0 insertions, 0 deletions