[GHC] #10739: Resuscitate the humble ticky-ticky profiler

GHC ghc-devs at haskell.org
Tue Dec 4 12:55:12 UTC 2018


#10739: Resuscitate the humble ticky-ticky profiler
-------------------------------------+-------------------------------------
        Reporter:  bgamari           |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Profiling         |              Version:  7.10.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #8308, #9405      |  Differential Rev(s):  Phab:D5392
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by sgraf):

 Just for future references: I think at least `ENT_DYN_THK_MANY_ctr` and
 `UPDF_PUSHED_ctr` are flawed. I discovered this while inspecting
 improvements in `queens` to due `-fstg-lift-lams`.

 With `-fno-stg-lift-lams`, these counters go down, which should not be the
 case since we don't ever destroy sharing or introduce any kind of
 additional thunks (like partial applications). On the other hand, this
 could happen because we no longer can use one of the generic apply
 functions (like `stg_ap_2`) after lifting, which AFAIK aren't represented
 at all in ticky numbers.

 Either way: Fix these counters by

 - Not using generic apply functions with `-ticky`
 - Identify and fix accidental misascription like in Phab:D5392

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10739#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list