[Git][ghc/ghc][wip/eras-profiling-with-base] 2 commits: rts: eras profiling mode

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Mon Jan 15 11:51:19 UTC 2024



Matthew Pickering pushed to branch wip/eras-profiling-with-base at Glasgow Haskell Compiler / GHC


Commits:
9642a008 by Matthew Pickering at 2024-01-15T11:49:49+00:00
rts: eras profiling mode

The eras profiling mode is useful for tracking the life-time of
closures. When a closure is written, the current era is recorded in the
profiling header. This records the era in which the closure was created.

* Enable with -he
* User mode: Use functions in GHC.Profiling.Eras to modify the era
* Automatically: --automatic-era-increment, increases the user era on major
  collections
* The first era is era 1
* -he<era> can be used with other profiling modes to select a specific
  era

If you just want to record the era but not to perform heap profiling you
can use `-he --no-automatic-heap-samples`.

Fixes #24332

- - - - -
e12b7312 by Matthew Pickering at 2024-01-15T11:49:49+00:00
base: Reflect new era profiling RTS flags in GHC.RTS.Flags

* -he profiling mode
* -he profiling selector
* --automatic-era-increment

- - - - -


30 changed files:

- compiler/GHC/Cmm/Parser.y
- compiler/GHC/StgToCmm/Prof.hs
- docs/users_guide/profiling.rst
- libraries/base/base.cabal
- libraries/base/src/GHC/Profiling.hs
- + libraries/base/src/GHC/Profiling/Eras.hs
- libraries/base/src/GHC/RTS/Flags.hsc
- rts/CloneStack.c
- rts/Continuation.c
- rts/Heap.c
- rts/Interpreter.c
- rts/LdvProfile.h
- rts/Messages.c
- rts/PrimOps.cmm
- rts/ProfHeap.c
- rts/ProfHeap.h
- rts/Profiling.c
- rts/RaiseAsync.c
- rts/RtsAPI.c
- rts/RtsFlags.c
- rts/RtsFlags.h
- rts/RtsSymbols.c
- rts/STM.c
- rts/Schedule.c
- rts/ThreadLabels.c
- rts/Threads.c
- rts/Updates.h
- rts/Weak.c
- rts/eventlog/EventLog.c
- rts/include/rts/EventLogFormat.h


The diff was not included because it is too large.


View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/a622d4ed647bf0dc351abd9ec7cb99ff5aca069f...e12b731239c64593f516cb7f0c22279d5bc55707

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/a622d4ed647bf0dc351abd9ec7cb99ff5aca069f...e12b731239c64593f516cb7f0c22279d5bc55707
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240115/32f93334/attachment.html>


More information about the ghc-commits mailing list