[GHC] #15604: Profiling RTS flag `-po` does not work

#15604: Profiling RTS flag `-po` does not work -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Profiling | Version: 8.5 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 RTS flag documentation says this about `-po`: {{{ empty: -p Time/allocation profile in tree format empty: (output file <output prefix>.prof) empty: -po<file> Override profiling output file name prefix (program name by default) }}} However it current doesn't work as advertised in 8.4 and HEAD. When I use `-po<file>` no file is generated. Reproducer: {{{ $ cat empty.hs main = return () $ ghc-stage2 empty.hs -fforce-recomp -rtsopts -prof [1 of 1] Compiling Main ( empty.hs, empty.o ) Linking empty ... $ ./empty +RTS -poprof $ ls | grep prof $ }}} Just `-p` works: {{{ $ ./empty +RTS -p $ ls | grep prof empty.prof $ }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15604 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15604: Profiling RTS flag `-po` does not work -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.6.1 Component: Profiling | Version: 8.5 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:D5130 Wiki Page: | -------------------------------------+------------------------------------- Changes (by osa1): * status: new => patch * differential: => Phab:D5130 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15604#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15604: Profiling RTS flag `-po` does not work -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.6.1 Component: Profiling | Version: 8.5 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: T15604 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5130 Wiki Page: | -------------------------------------+------------------------------------- Changes (by osa1): * testcase: => T15604 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15604#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15604: Profiling RTS flag `-po` does not work -------------------------------------+------------------------------------- Reporter: osa1 | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: Profiling | Version: 8.5 Resolution: invalid | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: T15604 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5130 Wiki Page: | -------------------------------------+------------------------------------- Changes (by osa1): * status: patch => closed * resolution: => invalid Comment: It turns out `-po` does not imply `-p` (which is clear in the user manual). Closing. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15604#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC