summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/dhtd.hs40
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."