[Haskell-cafe] ghc profiling

Mika Pöhls mikapoehls99 at gmx.de
Wed Jul 22 15:11:29 UTC 2020

Hello everyone,

I have a question regarding ghc profiling. The .hp file, created during
profiling, displays the memory usage until a certain point, which seems
to be the end of the execution of the program (based on the exectuion
time the program usually takes), as exprected.
But after that an extra sample is created, that contains no data (no
cost centers, it is just begin sample followed by end sample). This
sample is also created out of the 0.1 second gaps used before.
For example the last "correct" sample is at 17s and the empty sample is
at 40s. When plotting the data, this results in an monotonous increasing
graph (for all centers), that has its maximum at the last correct sample
(17s) followed by a straight line to zero (40s).

Does anyone know, what leads to this behavior and how it can be prevented?

Thanks in advance

More information about the Haskell-Cafe mailing list