Skip to content

Commit 0fc6787

Browse files
fix it harder
1 parent 56ca464 commit 0fc6787

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

System/Metrics.hs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,11 @@ registerGcMetrics =
481481
getRTSStats
482482
#else
483483
(M.fromList
484-
[ ("rts.gc.bytes_allocated" , Counter . Stats.bytesAllocated)
485-
, ("rts.gc.num_gcs" , Counter . Stats.numGcs)
486-
, ("rts.gc.num_bytes_usage_samples" , Counter . Stats.numByteUsageSamples)
487-
, ("rts.gc.cumulative_bytes_used" , Counter . Stats.cumulativeBytesUsed)
488-
, ("rts.gc.bytes_copied" , Counter . Stats.bytesCopied)
484+
[ ("rts.gc.bytes_allocated" , Counter . fromIntegral . Stats.bytesAllocated)
485+
, ("rts.gc.num_gcs" , Counter . fromIntegral . Stats.numGcs)
486+
, ("rts.gc.num_bytes_usage_samples" , Counter . fromIntegral . Stats.numByteUsageSamples)
487+
, ("rts.gc.cumulative_bytes_used" , Counter . fromIntegral . Stats.cumulativeBytesUsed)
488+
, ("rts.gc.bytes_copied" , Counter . fromIntegral . Stats.bytesCopied)
489489
, ("rts.gc.mutator_cpu_ms" , Counter . sToMs . Stats.mutatorCpuSeconds)
490490
, ("rts.gc.mutator_wall_ms" , Counter . sToMs . Stats.mutatorWallSeconds)
491491
, ("rts.gc.gc_cpu_ms" , Counter . sToMs . Stats.gcCpuSeconds)

0 commit comments

Comments
 (0)