Skip to content
  • Douglas Wilson's avatar
    rts, base: Refactor stats.c to improve --machine-readable report · f0b258bc
    Douglas Wilson authored and Ben Gamari's avatar Ben Gamari committed
    There should be no change in the output of the '+RTS -s' (summary)
    report, or
    the 'RTS -t' (one-line) report.
    
    All data shown in the summary report is now shown in the machine
    readable
    report.
    
    All data in RTSStats is now shown in the machine readable report.
    
    init times are added to RTSStats and added to GHC.Stats.
    
    Example of the new output:
    ```
     [("bytes allocated", "375016384")
     ,("num_GCs", "113")
     ,("average_bytes_used", "148348")
     ,("max_bytes_used", "206552")
     ,("num_byte_usage_samples", "2")
     ,("peak_megabytes_allocated", "6")
     ,("init_cpu_seconds", "0.001642")
     ,("init_wall_seconds", "0.001027")
     ,("mut_cpu_seconds", "3.020166")
     ,("mut_wall_seconds", "0.757244")
     ,("GC_cpu_seconds", "0.037750")
     ,("GC_wall_seconds", "0.009569")
     ,("exit_cpu_seconds", "0.000890")
     ,("exit_wall_seconds", "0.002551")
     ,("total_cpu_seconds", "3.060452")
     ,("total_wall_seconds", "0.770395")
     ,("major_gcs", "2")
     ,("allocated_bytes", "375016384")
     ,("ma...
    f0b258bc