[GHC] #14660: Improve +RTS -t --machine-readable

#14660: Improve +RTS -t --machine-readable -------------------------------------+------------------------------------- Reporter: duog | Owner: (none) Type: task | Status: new Priority: normal | Milestone: Component: Runtime | Version: 8.3 System | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The output of +RTS -t --machine-readable is a shown Haskell list, so we can easily add fields. Let's add everything shown by +RTS -s . I've posted a rough patch that does that at Phab:D4303. If this is a good idea, I'd like to also add the following: * a data structure and parsing function to GHC.Stats in base. * The ghc version as a field in the --machine-readable output * The rts ways as a field in the --machine-readable output -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14660 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14660: Improve +RTS -t --machine-readable -------------------------------------+------------------------------------- Reporter: duog | Owner: (none) Type: task | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 8.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mpickering): It could just be output as a JSON record rather than relying on having to use Haskell tooling to parse it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14660#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14660: Improve +RTS -t --machine-readable -------------------------------------+------------------------------------- Reporter: duog | Owner: (none) Type: task | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 8.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by duog): Using a JSON record would break existing tooling, which is a little on the nose since this output has been documented as being forwards compatible. It would be good to have a nice structured record for the per-generations stats though. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14660#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14660: Improve +RTS -t --machine-readable -------------------------------------+------------------------------------- Reporter: duog | Owner: (none) Type: task | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 8.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4303 Wiki Page: | -------------------------------------+------------------------------------- Changes (by duog): * differential: => Phab:D4303 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14660#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14660: Improve +RTS -t --machine-readable
-------------------------------------+-------------------------------------
Reporter: duog | Owner: (none)
Type: task | Status: new
Priority: normal | Milestone:
Component: Runtime System | Version: 8.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4303
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#14660: Improve +RTS -t --machine-readable -------------------------------------+------------------------------------- Reporter: duog | Owner: (none) Type: task | Status: closed Priority: normal | Milestone: Component: Runtime System | Version: 8.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4303 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14660#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14660: Improve +RTS -t --machine-readable -------------------------------------+------------------------------------- Reporter: duog | Owner: (none) Type: task | Status: closed Priority: normal | Milestone: 8.6.1 Component: Runtime System | Version: 8.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4303 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: => 8.6.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14660#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14660: Improve +RTS -t --machine-readable
-------------------------------------+-------------------------------------
Reporter: duog | Owner: (none)
Type: task | Status: closed
Priority: normal | Milestone: 8.6.1
Component: Runtime System | Version: 8.3
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4303
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari
participants (1)
-
GHC