diff options
author | Andrew Cady <d@jerkface.net> | 2018-06-21 16:13:04 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2018-06-21 22:35:10 -0400 |
commit | 7f896220887d588bad65aed5900e71823c65692e (patch) | |
tree | ca66a9eb063ef5cb94e25951021dbd1ec3babb91 /examples/dhtd.hs | |
parent | 4fc283da8edff660e1e7a3161745a8b2f11dc356 (diff) |
silence ghc deprecation warning
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r-- | examples/dhtd.hs | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs index da93bed4..a2aeab22 100644 --- a/examples/dhtd.hs +++ b/examples/dhtd.hs | |||
@@ -485,28 +485,28 @@ clientSession s@Session{..} sock cnum h = do | |||
485 | "gc" -> do hPutClient h "Performing garbage collection..." | 485 | "gc" -> do hPutClient h "Performing garbage collection..." |
486 | performMajorGC | 486 | performMajorGC |
487 | "" -> do | 487 | "" -> do |
488 | is_enabled <- getGCStatsEnabled | 488 | is_enabled <- getRTSStatsEnabled |
489 | if is_enabled | 489 | if is_enabled |
490 | then do | 490 | then do |
491 | GCStats{..} <- getGCStats | 491 | RTSStats{..} <- getRTSStats |
492 | let r = [ ("bytesAllocated", show bytesAllocated) | 492 | let r = [ ("bytesAllocated", show allocated_bytes) |
493 | , ("numGcs", show numGcs) | 493 | , ("numGcs", show gcs) |
494 | , ("maxBytesUsed", show maxBytesUsed) | 494 | , ("maxBytesUsed", show max_live_bytes) |
495 | , ("numByteUsageSamples", show numByteUsageSamples) | 495 | --, ("numByteUsageSamples", show numByteUsageSamples) |
496 | , ("cumulativeBytesUsed", show cumulativeBytesUsed) | 496 | , ("cumulativeBytesUsed", show cumulative_live_bytes) |
497 | , ("bytesCopied", show bytesCopied) | 497 | , ("bytesCopied", show copied_bytes) |
498 | , ("currentBytesUsed", show currentBytesUsed) | 498 | , ("currentBytesUsed", show allocated_bytes) |
499 | , ("currentBytesSlop", show currentBytesSlop) | 499 | --, ("currentBytesSlop", show currentBytesSlop) |
500 | , ("maxBytesSlop", show maxBytesSlop) | 500 | , ("maxBytesSlop", show max_slop_bytes) |
501 | , ("peakMegabytesAllocated", show peakMegabytesAllocated) | 501 | -- , ("peakMegabytesAllocated", show peakMegabytesAllocated) |
502 | , ("mutatorCpuSeconds", show mutatorCpuSeconds) | 502 | , ("mutatorCpuNanoseconds", show mutator_cpu_ns) |
503 | , ("mutatorWallSeconds", show mutatorWallSeconds) | 503 | , ("mutatorWallNanoseconds", show mutator_elapsed_ns) |
504 | , ("gcCpuSeconds", show gcCpuSeconds) | 504 | , ("gcCpuSeconds", show gc_cpu_ns) |
505 | , ("gcWallSeconds", show gcWallSeconds) | 505 | , ("gcWallSeconds", show gc_elapsed_ns) |
506 | , ("cpuSeconds", show cpuSeconds) | 506 | , ("cpuSeconds", show cpu_ns) |
507 | , ("wallSeconds", show wallSeconds) | 507 | , ("wallSeconds", show elapsed_ns) |
508 | , ("parTotBytesCopied", show parTotBytesCopied) | 508 | , ("parTotBytesCopied", show par_copied_bytes) |
509 | , ("parMaxBytesCopied", show parMaxBytesCopied) | 509 | , ("parMaxBytesCopied", show cumulative_par_max_copied_bytes) |
510 | ] | 510 | ] |
511 | hPutClient h $ showReport r | 511 | hPutClient h $ showReport r |
512 | else hPutClient h "Run with +RTS -T to obtain live memory-usage information." | 512 | else hPutClient h "Run with +RTS -T to obtain live memory-usage information." |