summaryrefslogtreecommitdiff
path: root/rts/ProfHeap.c
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2019-05-29 16:56:08 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-06-07 10:21:57 -0400
commit0b7372f68c0bc9cafc30e227b574abf1d5b16df5 (patch)
treef1b33e977ed5fb858ba102815260136a89d1735c /rts/ProfHeap.c
parente963beb54a243f011396942d2add644e3f3dd8ae (diff)
downloadhaskell-0b7372f68c0bc9cafc30e227b574abf1d5b16df5.tar.gz
Add HEAP_PROF_SAMPLE_END event to mark end of samples
This allows a user to observe how long a sampling period lasts so that the time taken can be removed from the profiling output. Fixes #16697
Diffstat (limited to 'rts/ProfHeap.c')
-rw-r--r--rts/ProfHeap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rts/ProfHeap.c b/rts/ProfHeap.c
index 5e3f8940a0..6fbfb6ea88 100644
--- a/rts/ProfHeap.c
+++ b/rts/ProfHeap.c
@@ -884,6 +884,7 @@ dumpCensus( Census *census )
fprintf(hp_file, "\t%" FMT_Word "\n", (W_)count * sizeof(W_));
}
+ traceHeapProfSampleEnd(era);
printSample(false, census->time);
}