[commit: ghc] wip/T16197: doc: reorder heap profiling information in +RTS -? (61f178b)
git at git.haskell.org
git at git.haskell.org
Thu Jan 17 13:59:01 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/T16197
Link : http://ghc.haskell.org/trac/ghc/changeset/61f178b617fcb2c1102b0d0505bb3c70e83c1843/ghc
>---------------------------------------------------------------
commit 61f178b617fcb2c1102b0d0505bb3c70e83c1843
Author: Ben Price <ben at brprice.uk>
Date: Mon Jan 14 18:26:45 2019 +0000
doc: reorder heap profiling information in +RTS -?
>---------------------------------------------------------------
61f178b617fcb2c1102b0d0505bb3c70e83c1843
rts/RtsFlags.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
index 132d127..ff9635a 100644
--- a/rts/RtsFlags.c
+++ b/rts/RtsFlags.c
@@ -323,9 +323,11 @@ usage_text[] = {
" -Pa Give information about *all* cost centres in tree format",
" -pj Output cost-center profile in JSON format",
"",
+" -h Heap residency profile, by cost centre stack",
" -h<break-down> Heap residency profile (hp2ps) (output file <program>.hp)",
" break-down: c = cost centre stack (default)",
" m = module",
+" T = closure type",
" d = closure description",
" y = type description",
" r = retainer",
@@ -347,9 +349,10 @@ usage_text[] = {
" -xt Include threads (TSOs) in a heap profile",
"",
" -xc Show current cost centre stack on raising an exception",
+#else /* PROFILING */
+" -h Heap residency profile (output file <program>.hp)",
+" -hT Produce a heap profile grouped by closure type",
#endif /* PROFILING */
-"",
-" -hT Produce a heap profile grouped by closure type"
#if defined(TRACING)
"",
@@ -372,10 +375,6 @@ usage_text[] = {
" the initial enabled event classes are 'sgpu'",
#endif
-#if !defined(PROFILING)
-"",
-" -h Heap residency profile (output file <program>.hp)",
-#endif
" -i<sec> Time between heap profile samples (seconds, default: 0.1)",
"",
#if defined(TICKY_TICKY)
More information about the ghc-commits
mailing list