Add GC_get_prof_stats[_unsafe]() to GC public API
authorIvan Maidanski <ivmai@mail.ru>
Tue, 6 Nov 2012 15:53:02 +0000 (19:53 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 6 Nov 2012 15:53:02 +0000 (19:53 +0400)
commit19eec8cc37106c7695313050412df61bf536343d
tree9ebe414c90a56204e3d5ff4f0bb00a21b3ebd4a1
parentd083e4b3c72c934762ca6ca0384f17a1480cf18b
Add GC_get_prof_stats[_unsafe]() to GC public API

* include/gc.h (GC_get_heap_size): Update comment.
* include/gc.h (GC_prof_stats_s): New structure.
* include/gc.h (GC_get_prof_stats): New API function.
* include/gc.h (GC_get_prof_stats_unsafe): New API function (only if
GC_THREADS).
* misc.c (fill_prof_stats): New static function (only if not
GC_GET_HEAP_USAGE_NOT_NEEDED).
* misc.c (GC_get_prof_stats): New API function definition (only if not
GC_GET_HEAP_USAGE_NOT_NEEDED).
* misc.c (GC_get_prof_stats_unsafe): New API function definition (only
if THREADS but not GC_GET_HEAP_USAGE_NOT_NEEDED).
include/gc.h
misc.c