[commit: ghc] wip/libdw-prof: rts: Emit debug information about program to event log (5c19133)
git at git.haskell.org
git at git.haskell.org
Sat May 6 22:40:25 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/libdw-prof
Link : http://ghc.haskell.org/trac/ghc/changeset/5c1913369b5c4510a877ff021ae3e88b15a72ecd/ghc
>---------------------------------------------------------------
commit 5c1913369b5c4510a877ff021ae3e88b15a72ecd
Author: Ben Gamari <ben at smart-cactus.org>
Date: Fri Sep 25 16:45:16 2015 +0200
rts: Emit debug information about program to event log
This commit adds support to the RTS for traversing the debug information
present in a program and emitting it to the event log for later
consumption by debugging and performance analysis tools. This includes
source note, symbol, and address range information derived from the
DWARF annotations produced by GHC.
Unfortunately one function necessary for traversing GHC's extended DWARF
information, `dwarf_cu_getdwarf`, was only introduced in libdw 0.160.
Consequently we won't be able to support statistical profiling in
releases earlier than this.
>---------------------------------------------------------------
5c1913369b5c4510a877ff021ae3e88b15a72ecd
configure.ac | 7 ++
includes/rts/EventLogFormat.h | 9 +-
rts/LibdwScrape.c | 287 ++++++++++++++++++++++++++++++++++++++++++
rts/LibdwScrape.h | 15 +++
rts/RtsStartup.c | 2 +
rts/Trace.c | 24 ++++
rts/Trace.h | 19 ++-
rts/eventlog/EventLog.c | 77 ++++++++++++
rts/eventlog/EventLog.h | 18 +++
9 files changed, 456 insertions(+), 2 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 5c1913369b5c4510a877ff021ae3e88b15a72ecd
More information about the ghc-commits
mailing list