Fix profiling output; spotted by jlouis
authorIan Lynagh <igloo@earth.li>
Tue, 25 May 2010 11:12:17 +0000 (11:12 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 25 May 2010 11:12:17 +0000 (11:12 +0000)
We were outputing the number of words allocated in a column titled "bytes".

rts/Profiling.c

index 581bf06..6d23bc2 100644 (file)
@@ -697,7 +697,7 @@ report_per_cc_costs( void )
       
       if (RtsFlags.CcFlags.doCostCentres >= COST_CENTRES_VERBOSE) {
        fprintf(prof_file, "  %5" FMT_Word64 " %9" FMT_Word64,
-               (StgWord64)(cc->time_ticks), cc->mem_alloc);
+               (StgWord64)(cc->time_ticks), cc->mem_alloc*sizeof(W_));
       }
       fprintf(prof_file, "\n");
   }