pike.git/
src/
gc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2012-07-06
2012-07-06 14:50:16 by Martin Stjernholm <mast@lysator.liu.se>
e704e33ceb931650617802545e633c7a2ecf2e12 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
7.8
Do not include the % in PRINT_ALLOC_COUNT_TYPE.
To allow specifying precision etc.
4226:
void dump_gc_info(void) { fprintf(stderr,"Current number of things : %d\n",num_objects);
-
fprintf(stderr,"Allocations since last gc : "PRINT_ALLOC_COUNT_TYPE"\n",
+
fprintf(stderr,"Allocations since last gc :
%
"PRINT_ALLOC_COUNT_TYPE"\n",
num_allocs);
-
fprintf(stderr,"Threshold for next gc : "PRINT_ALLOC_COUNT_TYPE"\n",
+
fprintf(stderr,"Threshold for next gc :
%
"PRINT_ALLOC_COUNT_TYPE"\n",
alloc_threshold); fprintf(stderr,"Projected current garbage : %f\n", objects_freed * (double) num_allocs / (double) alloc_threshold);