summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Price <ben@brprice.uk>2019-01-14 18:26:45 +0000
committerBen Gamari <ben@smart-cactus.org>2019-01-16 14:17:20 -0500
commit61f178b617fcb2c1102b0d0505bb3c70e83c1843 (patch)
tree9c5753d86dcb8f6a90dd44ef0808d86a81a8e80f
parent236abdb80ab894b093faca7911ad8cabd6dc3e81 (diff)
downloadhaskell-61f178b617fcb2c1102b0d0505bb3c70e83c1843.tar.gz
doc: reorder heap profiling information in +RTS -?
-rw-r--r--rts/RtsFlags.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/rts/RtsFlags.c b/rts/RtsFlags.c
index 132d12753c..ff9635ab24 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)