Showing with 3 additions and 0 deletions.
  1. +3 −0 src/gc/gc.d
3 changes: 3 additions & 0 deletions src/gc/gc.d
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ __gshared Duration prepTime;
__gshared Duration markTime;
__gshared Duration sweepTime;
__gshared Duration recoverTime;
__gshared size_t numCollections;
__gshared size_t maxPoolMemory;

private
Expand Down Expand Up @@ -1454,6 +1455,7 @@ struct Gcx
{
if (GC.config.profile)
{
printf("\tNumber of collections: %llu\n", numCollections);
printf("\tTotal GC prep time: %lld milliseconds\n",
prepTime.total!("msecs"));
printf("\tTotal mark time: %lld milliseconds\n",
Expand Down Expand Up @@ -2806,6 +2808,7 @@ struct Gcx
{
stop = currTime;
recoverTime += (stop - start);
++numCollections;
}

debug(COLLECT_PRINTF) printf("\trecovered pages = %d\n", recoveredpages);
Expand Down