[GHC] #15086: hT profiling option

#15086: hT profiling option -------------------------------------+------------------------------------- Reporter: crockeea | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Documentation Unknown/Multiple | bug Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- [https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/profiling.ht... #rts-options-for-heap-profiling The docs] indicate that you can pass `-hT` as an RTS option for memory profiling "by heap closure type". However, GHC 8.4.2 claims `invalid heap profile options: -hT`, and this option is not listed among the usage options printed with the error. The user guide for GHC 8.2.2 also mentions -hT, and I believe that GHC-8.2.2 also did not permit the option. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15086 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15086: hT profiling option -------------------------------------+------------------------------------- Reporter: crockeea | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): I'm confused; `+RTS -hT` works for me under both GHC 8.4.2 and 8.2.2 and indeed produces a `.hp` file after the program finishes. Are you perhaps building with profiling enabled? Do note that `-hT` is only available when *not* built with profiling (although admittedly it's not clear to me why this must be the case). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15086#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15086: hT profiling option -------------------------------------+------------------------------------- Reporter: crockeea | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4643 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => patch * differential: => Phab:D4643 Comment: I've added `-hT` to the RTS help message in Phab:D4643. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15086#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15086: hT profiling option -------------------------------------+------------------------------------- Reporter: crockeea | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4643 Wiki Page: | -------------------------------------+------------------------------------- Comment (by crockeea): Indeed Ben, I had profiling enabled (it's in the profiling section of the docs, after all!) A note in the help message is good, but the help message and docs need to be updated to indicate that profiling must be *off* for the option to be enabled. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15086#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15086: hT profiling option
-------------------------------------+-------------------------------------
Reporter: crockeea | Owner: (none)
Type: bug | Status: patch
Priority: normal | Milestone: 8.6.1
Component: Compiler | Version: 8.4.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Documentation | Unknown/Multiple
bug | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4643
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#15086: hT profiling option -------------------------------------+------------------------------------- Reporter: crockeea | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4643 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed Comment: Fixed by enabling use of `-hT` in the profiled RTS (b7b6617a90824303daf555c817f538cd9c792671). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15086#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15086: hT profiling option
-------------------------------------+-------------------------------------
Reporter: crockeea | Owner: (none)
Type: bug | Status: closed
Priority: normal | Milestone: 8.6.1
Component: Compiler | Version: 8.4.2
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Documentation | Unknown/Multiple
bug | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4643
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#15086: hT profiling option
-------------------------------------+-------------------------------------
Reporter: crockeea | Owner: (none)
Type: bug | Status: closed
Priority: normal | Milestone: 8.6.1
Component: Compiler | Version: 8.4.2
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Documentation | Unknown/Multiple
bug | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4643
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari
participants (1)
-
GHC