I'm using Mono 3.2.7 on OSX. I would like my program to be able to trigger a thread dump for the diagnostic exports.
[DllImport("libmono", EntryPoint = "_mono_threads_request_thread_dump")]
public static extern void MonoThreadsRequestThreadDump();
Nothing is written to stdout when this is called.
Removing the leading underscore causes a native exception in Mono as expected.
What am I doing incorrectly or what is a better way to achieve my goal?