Commit 9213fc96 authored by Edward Z. Yang's avatar Edward Z. Yang

Also include basic time statistics in GCStats.

Signed-off-by: Edward Z. Yang's avatarEdward Z. Yang <ezyang@mit.edu>
parent e17c1568
......@@ -198,6 +198,8 @@ typedef struct _GCStats {
StgDouble mutator_wall_seconds;
StgDouble gc_cpu_seconds;
StgDouble gc_wall_seconds;
StgDouble cpu_seconds;
StgDouble wall_seconds;
} GCStats;
void getGCStats (GCStats *s);
......
......@@ -891,6 +891,9 @@ extern void getGCStats( GCStats *s )
s->mutator_wall_seconds = TICK_TO_DBL(current_elapsed- end_init_elapsed - gc_elapsed);
s->gc_cpu_seconds = TICK_TO_DBL(gc_cpu);
s->gc_wall_seconds = TICK_TO_DBL(gc_elapsed);
/* EZY: Being consistent with incremental output, but maybe should also discount init */
s->cpu_seconds = TICK_TO_DBL(current_cpu);
s->wall_seconds = TICK_TO_DBL(current_elapsed - end_init_elapsed);
s->par_avg_bytes_copied = GC_par_avg_copied*(StgWord64)sizeof(W_);
s->par_max_bytes_copied = GC_par_max_copied*(StgWord64)sizeof(W_);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment