Skip to content

Commit 316a206

Browse files
fix it harder
1 parent 0fc6787 commit 316a206

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

System/Metrics.hs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -492,14 +492,14 @@ registerGcMetrics =
492492
, ("rts.gc.gc_wall_ms" , Counter . sToMs . Stats.gcWallSeconds)
493493
, ("rts.gc.cpu_ms" , Counter . sToMs . Stats.cpuSeconds)
494494
, ("rts.gc.wall_ms" , Counter . sToMs . Stats.wallSeconds)
495-
, ("rts.gc.max_bytes_used" , Gauge . Stats.maxBytesUsed)
496-
, ("rts.gc.current_bytes_used" , Gauge . Stats.currentBytesUsed)
497-
, ("rts.gc.current_bytes_slop" , Gauge . Stats.currentBytesSlop)
498-
, ("rts.gc.max_bytes_slop" , Gauge . Stats.maxBytesSlop)
499-
, ("rts.gc.peak_megabytes_allocated" , Gauge . Stats.peakMegabytesAllocated)
500-
, ("rts.gc.par_tot_bytes_copied" , Gauge . gcParTotBytesCopied)
501-
, ("rts.gc.par_avg_bytes_copied" , Gauge . gcParTotBytesCopied)
502-
, ("rts.gc.par_max_bytes_copied" , Gauge . Stats.parMaxBytesCopied)
495+
, ("rts.gc.max_bytes_used" , Gauge . fromIntegral . Stats.maxBytesUsed)
496+
, ("rts.gc.current_bytes_used" , Gauge . fromIntegral . Stats.currentBytesUsed)
497+
, ("rts.gc.current_bytes_slop" , Gauge . fromIntegral . Stats.currentBytesSlop)
498+
, ("rts.gc.max_bytes_slop" , Gauge . fromIntegral . Stats.maxBytesSlop)
499+
, ("rts.gc.peak_megabytes_allocated" , Gauge . fromIntegral . Stats.peakMegabytesAllocated)
500+
, ("rts.gc.par_tot_bytes_copied" , Gauge . fromIntegral . gcParTotBytesCopied)
501+
, ("rts.gc.par_avg_bytes_copied" , Gauge . fromIntegral . gcParTotBytesCopied)
502+
, ("rts.gc.par_max_bytes_copied" , Gauge . fromIntegral . Stats.parMaxBytesCopied)
503503
])
504504
getGcStats
505505
where

0 commit comments

Comments
 (0)