Ticky profiling improvements.
This adds a number of changes to ticky-ticky profiling. When an executable is profiled with IPE profiling it's now possible to associate id-related ticky counters to their source location. This works by emitting the info table address as part of the counter which can be looked up in the IPE table. Add a `-ticky-ap-thunk` flag. This flag prevents the use of some standard thunks which are precompiled into the RTS. This means reduced cache locality and increased code size. But it allows better attribution of execution cost to specific source locations instead of simple attributing it to the standard thunk. ticky-ticky now uses the `arg` field to emit additional information about counters in json format. When ticky-ticky is used in combination with the eventlog eventlog2html can be used to generate a html table from the eventlog similar to the old text output for ticky-ticky.
parent
7aeb6d29
Pipeline #48338 canceled
Stage: tool-lint
Stage: quick-build
Stage: full-build
Stage: packaging
Stage: testing
Stage: deploy
Showing
- compiler/GHC/Cmm/Parser.y 1 addition, 0 deletionscompiler/GHC/Cmm/Parser.y
- compiler/GHC/Driver/Config/StgToCmm.hs 1 addition, 0 deletionscompiler/GHC/Driver/Config/StgToCmm.hs
- compiler/GHC/Driver/Flags.hs 1 addition, 0 deletionscompiler/GHC/Driver/Flags.hs
- compiler/GHC/Driver/Session.hs 2 additions, 0 deletionscompiler/GHC/Driver/Session.hs
- compiler/GHC/Iface/Tidy.hs 1 addition, 1 deletioncompiler/GHC/Iface/Tidy.hs
- compiler/GHC/StgToCmm/Bind.hs 18 additions, 14 deletionscompiler/GHC/StgToCmm/Bind.hs
- compiler/GHC/StgToCmm/Closure.hs 4 additions, 3 deletionscompiler/GHC/StgToCmm/Closure.hs
- compiler/GHC/StgToCmm/Config.hs 1 addition, 0 deletionscompiler/GHC/StgToCmm/Config.hs
- compiler/GHC/StgToCmm/Env.hs 10 additions, 1 deletioncompiler/GHC/StgToCmm/Env.hs
- compiler/GHC/StgToCmm/Expr.hs 1 addition, 1 deletioncompiler/GHC/StgToCmm/Expr.hs
- compiler/GHC/StgToCmm/Ticky.hs 116 additions, 26 deletionscompiler/GHC/StgToCmm/Ticky.hs
- compiler/GHC/Types/Var/Env.hs 3 additions, 0 deletionscompiler/GHC/Types/Var/Env.hs
- compiler/GHC/Utils/Json.hs 9 additions, 1 deletioncompiler/GHC/Utils/Json.hs
- docs/users_guide/profiling.rst 148 additions, 0 deletionsdocs/users_guide/profiling.rst
- rts/Ticky.c 3 additions, 3 deletionsrts/Ticky.c
- rts/eventlog/EventLog.c 2 additions, 1 deletionrts/eventlog/EventLog.c
- rts/include/rts/Ticky.h 1 addition, 0 deletionsrts/include/rts/Ticky.h
- testsuite/tests/driver/T16167.stdout 1 addition, 1 deletiontestsuite/tests/driver/T16167.stdout
- testsuite/tests/driver/json.stderr 1 addition, 1 deletiontestsuite/tests/driver/json.stderr
- testsuite/tests/driver/json2.stderr 1 addition, 1 deletiontestsuite/tests/driver/json2.stderr
Loading
-
mentioned in merge request !7525 (closed)
-
mentioned in issue #21233 (closed)
Please register or sign in to comment