Perhaps some other time. I do _use_ monstartup, however.
This patch should address all comments from the last three times this
came up. I chose to use monstartup/_mcleanup instead of using
moncontrol; when someone wants to use this on a system without those
functions, _then_ we can decide how to handle it. That's just my
opinion though. What I've done should work for at least GNU/Linux and
FreeBSD, and that's enough to be useful. It only comes in if you
configure it on, anyway.
It works like a charm; absolutely beautifully. Thoughts, all?
(Unfortunatly, I've also leant a few things about how profiling works
... :-().