[commit: ghc] wip/T16197: rts: Allow heap prof by closure type in prof way (236abdb)

git at git.haskell.org git at git.haskell.org
Thu Jan 17 13:58:55 UTC 2019


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

On branch  : wip/T16197
Link       : http://ghc.haskell.org/trac/ghc/changeset/236abdb80ab894b093faca7911ad8cabd6dc3e81/ghc

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

commit 236abdb80ab894b093faca7911ad8cabd6dc3e81
Author: Ben Price <ben at brprice.uk>
Date:   Tue Jan 8 22:16:10 2019 +0000

    rts: Allow heap prof by closure type in prof way
    
    Complete b7b6617a90824303daf555c817f538cd9c792671 (see ticket #15086) to
    actually enable profiling by closure type in the profiling rts. I.e.
    +RTS -p -hT is now accepted.


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

236abdb80ab894b093faca7911ad8cabd6dc3e81
 rts/RtsFlags.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
index 999b727..132d127 100644
--- a/rts/RtsFlags.c
+++ b/rts/RtsFlags.c
@@ -1906,6 +1906,7 @@ static bool read_heap_profiling_flag(const char *arg)
     case 'r':
     case 'B':
     case 'b':
+    case 'T':
         if (arg[2] != '\0' && arg[3] != '\0') {
             {
                 const char *left  = strchr(arg, '{');



More information about the ghc-commits mailing list