[commit: ghc] wip/libdw-prof: rts: Emit debug information about program to event log (3db4bfb)

git at git.haskell.org git at git.haskell.org
Sun May 7 19:38:56 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/libdw-prof
Link       : http://ghc.haskell.org/trac/ghc/changeset/3db4bfb98943ed2fc17dbab0bf5f1ff4c26b68e4/ghc

>---------------------------------------------------------------

commit 3db4bfb98943ed2fc17dbab0bf5f1ff4c26b68e4
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.


>---------------------------------------------------------------

3db4bfb98943ed2fc17dbab0bf5f1ff4c26b68e4
 configure.ac                  |   7 ++
 includes/rts/EventLogFormat.h |   9 +-
 rts/LibdwScrape.c             | 287 ++++++++++++++++++++++++++++++++++++++++++
 rts/LibdwScrape.h             |  12 ++
 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, 453 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 3db4bfb98943ed2fc17dbab0bf5f1ff4c26b68e4


More information about the ghc-commits mailing list