[GHC] #11653: Time compiler passes

#11653: Time compiler passes -------------------------------------+------------------------------------- Reporter: bgamari | Owner: Type: feature | Status: new request | Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 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: -------------------------------------+------------------------------------- It would be very useful if the compiler would produce timings of various phases of compilation. Even better, if could produce allocation numbers as well. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11653 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11653: Time compiler passes -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.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: | -------------------------------------+------------------------------------- Changes (by bgamari): * owner: => bgamari @@ -1,3 +1,3 @@ - It would be very useful if the compiler would produce timings of various - phases of compilation. Even better, if could produce allocation numbers as - well. + It would be very useful for compiler performance analysis if the compiler + would produce timings of various phases of compilation. Even better, if + could produce allocation numbers as well. New description: It would be very useful for compiler performance analysis if the compiler would produce timings of various phases of compilation. Even better, if could produce allocation numbers as well. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11653#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11653: Time compiler passes -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.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 nomeata): Note that at least the Core-to-Core passes have SCC annotations for each pass: http://git.haskell.org/ghc.git/blob/HEAD:/compiler/simplCore/SimplCore.hs#l3... Also, laziness would make such timing statistics more tricky. But in general, you are of course right. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11653#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

Note that at least the Core-to-Core passes have SCC annotations for each
#11653: Time compiler passes -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: feature request | Status: patch Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.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:D1959 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => patch * differential: => Phab:D1959 * milestone: => 8.0.1 Comment: pass Indeed, but these help little when working with an un-profiled compiler. I would really like to be able to track these timings over time, in hopes that they will help in localizing performance regressions within the compiler. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11653#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11653: Emit timings for individual compiler passes -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: feature request | Status: patch Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.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:D1959 Wiki Page: | -------------------------------------+------------------------------------- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11653#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11653: Emit timings for individual compiler passes -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: feature request | Status: patch Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.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:D1959 Wiki Page: | -------------------------------------+------------------------------------- Description changed by bgamari: @@ -2,1 +2,1 @@ - would produce timings of various phases of compilation. Even better, if + would produce timings of various phases of compilation. Even better, if it New description: It would be very useful for compiler performance analysis if the compiler would produce timings of various phases of compilation. Even better, if it could produce allocation numbers as well. -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11653#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11653: Emit timings for individual compiler passes -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: feature request | Status: merge Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.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:D1959 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => merge Comment: Phab:D1959 was merged as 8048d51be0676627b417c128af0b0c352b75c537. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11653#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11653: Emit timings for individual compiler passes -------------------------------------+------------------------------------- Reporter: bgamari | Owner: bgamari Type: feature request | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.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:D1959 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-8.0` as 8ad33de4b256fcad42d1f8f9b67ceaaae03ccb1a. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11653#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC