Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
This fork has diverged from the upstream repository.
  • Teo Camarasu's avatar
    72c537ce
    nonmoving: Add support for heap profiling · 72c537ce
    Teo Camarasu authored and Ben Gamari's avatar Ben Gamari committed
    Add support for heap profiling while using the nonmoving collector.
    
    We greatly simply the implementation by disabling concurrent collection for
    GCs when heap profiling is enabled. This entails that the marked objects on
    the nonmoving heap are exactly the live objects.
    
    Note that we match the behaviour for live bytes accounting by taking the size
    of objects on the nonmoving heap to be that of the segment's block
    rather than the object itself.
    
    Resolves #22221
    
    (cherry picked from commit bedb4f0d)
    72c537ce
    History
    nonmoving: Add support for heap profiling
    Teo Camarasu authored and Ben Gamari's avatar Ben Gamari committed
    Add support for heap profiling while using the nonmoving collector.
    
    We greatly simply the implementation by disabling concurrent collection for
    GCs when heap profiling is enabled. This entails that the marked objects on
    the nonmoving heap are exactly the live objects.
    
    Note that we match the behaviour for live bytes accounting by taking the size
    of objects on the nonmoving heap to be that of the segment's block
    rather than the object itself.
    
    Resolves #22221
    
    (cherry picked from commit bedb4f0d)
Capability.h 17.06 KiB