Skip to content
  • Douglas Wilson's avatar
    rts: Fix gc timing · d9f0c24d
    Douglas Wilson authored and Ben Gamari's avatar Ben Gamari committed
    We were accumulating the gc times of the previous gc.
    `stats.gc.{cpu,elappsed}_ns` were being accumulated into
    `stats.gc_{cpu,elapsed}_ns` before they were set.
    
    There is also a change in that heap profiling will no longer cause gc
    events to
    be emitted.
    
    Reviewers: bgamari, erikd, simonmar
    
    Reviewed By: bgamari
    
    Subscribers: rwbarton, thomie
    
    GHC Trac Issues: #14257, #14445
    
    Differential Revision: https://phabricator.haskell.org/D4184
    d9f0c24d