Doing that in the MiNTLib should be enough.
I'm not sure if you're right -- kernel has much more trace outputs, so we can see some special condition has happened (for example allocation 1 byte behind page boundary, N bytes long biggest available block, number of block or anything else, I'm just guessing). But of course, debug mintlib + debug kernel may be the best option.