If you combine the lineinfo and the heaptrc information, then the output of the heaptrc unit will contain the names of the files and line numbers of the procedures that occur in the stack backtrace.
In such a case, the output will look something like this:
If lines without filename / line number occur, this means there is a unit which has no debug info included (in the above case, the getmem call itself).